| 12345678910111213141516171819 |
- from oscar.core.loading import is_model_registered
- from oscar.apps.address.abstract_models import (
- AbstractUserAddress, AbstractCountry)
-
- __all__ = []
-
-
- if not is_model_registered('address', 'UserAddress'):
- class UserAddress(AbstractUserAddress):
- pass
-
- __all__.append('UserAddress')
-
-
- if not is_model_registered('address', 'Country'):
- class Country(AbstractCountry):
- pass
-
- __all__.append('Country')
|