Files changed (5)
- assert not not hasattr(cls, 'CONDITIONS'), "The model '%s' doesn't have conditions set." % cls.__name__
+ assert isinstance(cls.STATUS, Choices), "The status choices of model '%s' isn't a subclass of %s" % (cls.__name__, Choices)
- assert not getattr(cls._meta, "has_condition_modified_field", False), "A model can't have more than one ConditionModifedField."
+ assert not getattr(cls._meta, "has_status_modified_field", False), "A model can't have more than one StatusModifedField."
-from model_utils.models import InheritanceCastModel, TimeStampedModel,