diff options
author | Sunil Shetye | 2025-01-25 11:37:13 +0530 |
---|---|---|
committer | Sunil Shetye | 2025-01-25 11:37:13 +0530 |
commit | 8ab8b62f2f69406bcb5c07fcfcee5d31ac4301e6 (patch) | |
tree | 3544144925b663a70a8e2128c39d8805cdcb8409 | |
parent | aae8d4a7111a228907d96161fb8248b753517787 (diff) | |
download | Common-Interface-Project-8ab8b62f2f69406bcb5c07fcfcee5d31ac4301e6.tar.gz Common-Interface-Project-8ab8b62f2f69406bcb5c07fcfcee5d31ac4301e6.tar.bz2 Common-Interface-Project-8ab8b62f2f69406bcb5c07fcfcee5d31ac4301e6.zip |
methods not required now
-rw-r--r-- | blocks/saveAPI/views.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/blocks/saveAPI/views.py b/blocks/saveAPI/views.py index 8513e60b..ccc72a72 100644 --- a/blocks/saveAPI/views.py +++ b/blocks/saveAPI/views.py @@ -357,7 +357,6 @@ class DeleteDiagram(APIView): class GalleryListView(ListAPIView): permission_classes = (AllowAny,) - methods = ['GET'] serializer_class = GalleryListSerializer def get_queryset(self): @@ -370,7 +369,6 @@ class GalleryListView(ListAPIView): class GalleryDetailView(RetrieveAPIView): permission_classes = (AllowAny,) - methods = ['GET'] queryset = Gallery.objects.all() serializer_class = GalleryDetailSerializer lookup_field = 'save_id' @@ -378,13 +376,11 @@ class GalleryDetailView(RetrieveAPIView): class BookCategoryView(ListAPIView): permission_classes = (AllowAny,) - methods = ['GET'] queryset = BookCategory.objects.all() serializer_class = BookCategorySerializer class BookView(ListAPIView): permission_classes = (AllowAny,) - methods = ['GET'] queryset = Book.objects.annotate(example_count=Count('examples')).order_by('book_name', 'author_name') serializer_class = BookSerializer |