_state何の属性を持っていない、と私はオブジェクトは、私がDjangoアプリケーションを開発してい
'Sheep' object has no attribute _state
私のモデルは私がしなければならない何この
class Animal(models.Model):
aul = models.ForeignKey(Aul)
weight = models.IntegerField()
quality = models.IntegerField()
age = models.IntegerField()
def __init__(self,aul):
self.aul=aul
self.weight=3
self.quality=10
self.age=0
def __str__(self):
return self.age
class Sheep(Animal):
wool = models.IntegerField()
def __init__(self,aul):
Animal.__init__(self,aul)
ように構成されているエラー以下がありますか?