मैं Django आवेदन के विकास कर रहा हूँ _state कोई गुण नहीं है, और मैं त्रुटि निम्न हैवस्तु
'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)
की तरह निर्माण कर रहे हैं मुझे क्या करना चाहिए क्या?