kopia lustrzana https://gitlab.com/marnanel/chapeau
intermediate
rodzic
65debd17c7
commit
017d0d17fb
|
@ -426,7 +426,7 @@ class Notifications(generics.ListAPIView):
|
||||||
|
|
||||||
def list(self, request):
|
def list(self, request):
|
||||||
queryset = Notification.objects.filter(
|
queryset = Notification.objects.filter(
|
||||||
for_account = request.user,
|
for_account = request.user.person,
|
||||||
)
|
)
|
||||||
|
|
||||||
serializer = self.serializer_class(queryset, many=True)
|
serializer = self.serializer_class(queryset, many=True)
|
||||||
|
|
Ładowanie…
Reference in New Issue