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

1234567891011121314151617181920212223
  1. from oscar.core.loading import is_model_registered
  2. from . import abstract_models
  3. if not is_model_registered('payment', 'Transaction'):
  4. class Transaction(abstract_models.AbstractTransaction):
  5. pass
  6. if not is_model_registered('payment', 'Source'):
  7. class Source(abstract_models.AbstractSource):
  8. pass
  9. if not is_model_registered('payment', 'SourceType'):
  10. class SourceType(abstract_models.AbstractSourceType):
  11. pass
  12. if not is_model_registered('payment', 'Bankcard'):
  13. class Bankcard(abstract_models.AbstractBankcard):
  14. pass