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.

123456789101112131415161718192021222324252627282930313233
  1. from oscar.core.loading import is_model_registered
  2. from . import abstract_models
  3. __all__ = []
  4. if not is_model_registered('payment', 'Transaction'):
  5. class Transaction(abstract_models.AbstractTransaction):
  6. pass
  7. __all__.append('Transaction')
  8. if not is_model_registered('payment', 'Source'):
  9. class Source(abstract_models.AbstractSource):
  10. pass
  11. __all__.append('Source')
  12. if not is_model_registered('payment', 'SourceType'):
  13. class SourceType(abstract_models.AbstractSourceType):
  14. pass
  15. __all__.append('SourceType')
  16. if not is_model_registered('payment', 'Bankcard'):
  17. class Bankcard(abstract_models.AbstractBankcard):
  18. pass
  19. __all__.append('Bankcard')