6
Yöneticiye model örnekler üzerinden erişilemez
Başka bir model nesnesi örneğini almaya çalışıyorum ve bu hatayı yükseltiyorum: Manager isn't accessible via topic instance İşte modelim: class forum(models.Model): # Some attributs class topic(models.Model): # Some attributs class post(models.Model): # Some attributs def delete(self): forum = self.topic.forum super(post, self).delete() forum.topic_count = topic.objects.filter(forum = forum).count() İşte benim görüşüm: def …