diff --git a/pairent_backend/pairent_app/views.py b/pairent_backend/pairent_app/views.py index a401edb..778d422 100644 --- a/pairent_backend/pairent_app/views.py +++ b/pairent_backend/pairent_app/views.py @@ -21,7 +21,7 @@ class ApartamentViewSet(viewsets.ReadOnlyModelViewSet): elif self.action == "retrieve": return ApartamentDetailSerializer -class ApartamentGetManyViewSet(viewsets.ModelViewSet): +class ApartamentGetManyViewSet(viewsets.ReadOnlyModelViewSet): """Вывод отдельных квартир для сравнения""" def get_queryset(self): # получение id квартир для избранного или сравнения pk = self.request.query_params.get("pk", None) # получение id пользователя