You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

models.py 777B

123456789101112131415161718192021222324252627282930
  1. import django
  2. from oscar.core.loading import is_model_registered
  3. from oscar.apps.customer import abstract_models
  4. if not is_model_registered('customer', 'Email'):
  5. class Email(abstract_models.AbstractEmail):
  6. pass
  7. if not is_model_registered('customer', 'CommunicationEventType'):
  8. class CommunicationEventType(
  9. abstract_models.AbstractCommunicationEventType):
  10. pass
  11. if not is_model_registered('customer', 'Notification'):
  12. class Notification(abstract_models.AbstractNotification):
  13. pass
  14. if not is_model_registered('customer', 'ProductAlert'):
  15. class ProductAlert(abstract_models.AbstractProductAlert):
  16. pass
  17. if django.VERSION < (1, 7):
  18. from .receivers import * # noqa
  19. from .alerts import receivers # noqa