diff --git a/ecommerce/extensions/dashboard/catalogue/__init__.py b/ecommerce/extensions/dashboard/catalogue/__init__.py new file mode 100644 index 00000000000..c2871c11d6f --- /dev/null +++ b/ecommerce/extensions/dashboard/catalogue/__init__.py @@ -0,0 +1 @@ +default_app_config = 'ecommerce.extensions.dashboard.catalogue.apps.CatalogueDashboardConfig' diff --git a/ecommerce/extensions/dashboard/catalogue/apps.py b/ecommerce/extensions/dashboard/catalogue/apps.py new file mode 100644 index 00000000000..b32b6937121 --- /dev/null +++ b/ecommerce/extensions/dashboard/catalogue/apps.py @@ -0,0 +1,5 @@ +from oscar.apps.dashboard.catalogue import apps + + +class CatalogueDashboardConfig(apps.CatalogueDashboardConfig): + name = 'ecommerce.extensions.dashboard.catalogue' diff --git a/ecommerce/extensions/dashboard/catalogue/forms.py b/ecommerce/extensions/dashboard/catalogue/forms.py new file mode 100644 index 00000000000..9fcacc439df --- /dev/null +++ b/ecommerce/extensions/dashboard/catalogue/forms.py @@ -0,0 +1,9 @@ +from oscar.apps.dashboard.catalogue.forms import ProductForm as BaseProductForm + + +class ProductForm(BaseProductForm): + class Meta(BaseProductForm.Meta): + fields = [ + 'title', 'course', 'expires', 'upc', 'description', + 'is_public', 'is_discountable', 'structure' + ] diff --git a/ecommerce/settings/_oscar.py b/ecommerce/settings/_oscar.py index cefc568a1c0..cb416ab27e7 100644 --- a/ecommerce/settings/_oscar.py +++ b/ecommerce/settings/_oscar.py @@ -42,7 +42,6 @@ # To prevent issues with Oscar’s dynamic model loading, overrides of dashboard applications should # follow overrides of core applications 'oscar.apps.dashboard.reports', - 'oscar.apps.dashboard.catalogue', 'oscar.apps.dashboard.partners', 'oscar.apps.dashboard.pages', 'oscar.apps.dashboard.ranges', @@ -52,6 +51,7 @@ 'oscar.apps.dashboard.shipping', 'ecommerce.extensions.dashboard', + 'ecommerce.extensions.dashboard.catalogue', 'ecommerce.extensions.dashboard.offers', 'ecommerce.extensions.dashboard.refunds', 'ecommerce.extensions.dashboard.orders',