Ejemplo n.º 1
0
 def get_queryset(self):
     qs = models.Issue.objects.all()
     qs = qs.prefetch_related("attachments")
     qs = attach_votescount_to_queryset(qs, as_field="votes_count")
     return qs
Ejemplo n.º 2
0
 def get_queryset(self):
     qs = models.Issue.objects.all()
     qs = qs.prefetch_related("attachments")
     qs = attach_votescount_to_queryset(qs, as_field="votes_count")
     return qs