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 938B

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