I\'m developing Django application, and I have following error
\'Sheep\' object has no attribute _state
My models are constructed like this
Django docs recommend against you to use __init__ method in models:
You may be tempted to customize the model by overriding the
__init__method. If you do so, however, take care not to change the calling signature as any change may prevent the model instance from being saved. Rather than overriding__init__, try using one of these approaches:
- Add a classmethod on the model class
- Add a method on a custom manager (usually preferred)