diff --git a/proposals/models.py b/proposals/models.py index c952911..4bbedff 100644 --- a/proposals/models.py +++ b/proposals/models.py @@ -25,10 +25,6 @@ class Topic(PonyConfModel): reviewers = models.ManyToManyField(User, blank=True) - @property - def talks(self): - return Talk.objects.filter(topics=self).all() - def __str__(self): return self.name diff --git a/proposals/templates/proposals/topic_list.html b/proposals/templates/proposals/topic_list.html index 0950f29..607de82 100644 --- a/proposals/templates/proposals/topic_list.html +++ b/proposals/templates/proposals/topic_list.html @@ -15,7 +15,7 @@ {{ topic }}: {{ topic.reviewers.count }} reviewer{{ topic.reviewers.count|pluralize }} and - {{ topic.talks.count }} talk{{ topic.talks.count|pluralize }} + {{ topic.talk_set.count }} talk{{ topic.talk_set.count|pluralize }} {% else %} {{ topic }} {% endif %}