From e8e22541faa2858fe87501ad291117f0b0d8998b Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Fri, 7 Feb 2020 17:10:35 +0100 Subject: [PATCH] Small fix --- apps/api/note/serializers.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/apps/api/note/serializers.py b/apps/api/note/serializers.py index be99eec3..fb8dd771 100644 --- a/apps/api/note/serializers.py +++ b/apps/api/note/serializers.py @@ -27,16 +27,6 @@ class NoteClubSerializer(serializers.HyperlinkedModelSerializer): fields = ('balance', 'is_active', 'display_image', 'created_at', 'club',) -class NoteClubViewSet(viewsets.ModelViewSet): - """ - REST API View set. - The djangorestframework plugin will get all `NoteClub` objects, serialize it to JSON with the given serializer, - then render it on /api/note/club/ - """ - queryset = NoteClub.objects.all() - serializer_class = NoteClubSerializer - - class NoteSpecialSerializer(serializers.HyperlinkedModelSerializer): """ REST API Serializer for special notes.