From f10c6a5674891570f3f44cecf02113e013a90ccb Mon Sep 17 00:00:00 2001 From: Viggo de Vries Date: Tue, 2 Jan 2024 14:46:44 +0100 Subject: [PATCH] Remove unused default --- oscar_odin/management/commands/test_queries.py | 1 - oscar_odin/mappings/defaults.py | 9 --------- tests/resources/test_catalogue.py | 2 -- 3 files changed, 12 deletions(-) delete mode 100644 oscar_odin/mappings/defaults.py diff --git a/oscar_odin/management/commands/test_queries.py b/oscar_odin/management/commands/test_queries.py index 4b9c435..1abdb48 100644 --- a/oscar_odin/management/commands/test_queries.py +++ b/oscar_odin/management/commands/test_queries.py @@ -17,7 +17,6 @@ ProductAttributeValue as ProductAttributeValueResource, ) -from oscar_odin.mappings.defaults import DEFAULT_UPDATE_FIELDS from oscar_odin.mappings.constants import * from oscar_odin.utils import querycounter diff --git a/oscar_odin/mappings/defaults.py b/oscar_odin/mappings/defaults.py deleted file mode 100644 index 7fe95c8..0000000 --- a/oscar_odin/mappings/defaults.py +++ /dev/null @@ -1,9 +0,0 @@ -DEFAULT_UPDATE_FIELDS = [ - "product.title", - "product.slug", - "product.price", - "stockrecord.num_in_stock", - "stockrecord.num_allocated", - "category.name", - "display_order", -] diff --git a/tests/resources/test_catalogue.py b/tests/resources/test_catalogue.py index 82db561..1e0e3eb 100644 --- a/tests/resources/test_catalogue.py +++ b/tests/resources/test_catalogue.py @@ -16,8 +16,6 @@ ProductAttributeValue as ProductAttributeValueResource, ) -from oscar_odin.mappings.defaults import DEFAULT_UPDATE_FIELDS - Product = get_model("catalogue", "Product") ProductClass = get_model("catalogue", "ProductClass") ProductAttribute = get_model("catalogue", "ProductAttribute")