# my_project/apps/dashboard/catalogue/forms.py
from oscar.apps.dashboard.catalogue.forms import ProductForm as CoreProductForm
class ProductForm(CoreProductForm): class Meta(CoreProductForm.Meta): fields = [ 'title', 'upc', 'description', 'is_discountable', 'structure', 'product_file'] def delete_non_child_fields(self): """ Deletes any fields not needed for child products. Override this if you want to e.g. keep the description field. """ for field_name in ['description', 'is_discountable', 'product_file']: if field_name in self.fields: del self.fields[field_name]
from oscar import get_core_apps
INSTALLED_APPS = [
...
] + get_core_apps(['oscarmod.catalogue', 'oscarmod.dashboard.catalogue',])
To view this discussion on the web, visit https://groups.google.com/d/msgid/django-oscar/27f31814-a262-4a35-9a0a-fd05c5771fc3%40googlegroups.com.--
https://github.com/tangentlabs/django-oscar
http://django-oscar.readthedocs.org/en/latest/
https://twitter.com/django_oscar
---
You received this message because you are subscribed to a topic in the Google Groups "django-oscar" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-oscar/i1dy43J5mww/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-oscar...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-oscar.