diff --git a/partners/views.py b/partners/views.py index 605189e..99e0199 100644 --- a/partners/views.py +++ b/partners/views.py @@ -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