Added some logic

This commit is contained in:
maciejrusek
2026-03-18 19:14:26 +01:00
parent fdcd0653a6
commit 5722f0b7ea
13 changed files with 211 additions and 44 deletions

View File

@@ -16,4 +16,4 @@ class BooksViewSet(viewsets.ModelViewSet):
def get_queryset(self):
return self.queryset.filter(
shelf__user_id=self.request.user.pk
)
).prefetch_related("authors")