Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

feat: Added course and expires field in product form on ecommerce dashboard #3938

Merged
merged 1 commit into from
Apr 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ecommerce/extensions/dashboard/catalogue/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
default_app_config = 'ecommerce.extensions.dashboard.catalogue.apps.CatalogueDashboardConfig'
5 changes: 5 additions & 0 deletions ecommerce/extensions/dashboard/catalogue/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from oscar.apps.dashboard.catalogue import apps


class CatalogueDashboardConfig(apps.CatalogueDashboardConfig):
name = 'ecommerce.extensions.dashboard.catalogue'
9 changes: 9 additions & 0 deletions ecommerce/extensions/dashboard/catalogue/forms.py
Original file line number Diff line number Diff line change
@@ -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'
]
2 changes: 1 addition & 1 deletion ecommerce/settings/_oscar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down