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

12345678910111213141516171819202122232425
  1. from oscar.core.loading import is_model_registered
  2. from oscar.apps.shipping import abstract_models
  3. __all__ = []
  4. if not is_model_registered('shipping', 'OrderAndItemCharges'):
  5. class OrderAndItemCharges(abstract_models.AbstractOrderAndItemCharges):
  6. pass
  7. __all__.append('OrderAndItemCharges')
  8. if not is_model_registered('shipping', 'WeightBased'):
  9. class WeightBased(abstract_models.AbstractWeightBased):
  10. pass
  11. __all__.append('WeightBased')
  12. if not is_model_registered('shipping', 'WeightBand'):
  13. class WeightBand(abstract_models.AbstractWeightBand):
  14. pass
  15. __all__.append('WeightBand')