Querysets are confusing
This commit is contained in:
parent
85dbe78904
commit
17b9ca72c0
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ class OffersListView(LoginRequiredMixin, ListView):
|
|||
template_name = "partners/offer_list.html"
|
||||
|
||||
def get_queryset(self):
|
||||
return Offer.objects.filter(establishment__in=self.request.user.partnerprofile.establishment_set)
|
||||
return Offer.objects.filter(establishment__in=self.request.user.partnerprofile.establishment_set.all())
|
||||
|
||||
class EstablishmentsListView(LoginRequiredMixin, ListView):
|
||||
model = Establishment
|
||||
|
|
Loading…
Reference in a new issue