Skip to content
Snippets Groups Projects
Commit e8e22541 authored by ynerant's avatar ynerant
Browse files

Small fix

parent 5633f012
No related branches found
No related tags found
1 merge request!8API & autocomplétion
Pipeline #7706 passed with stage
in 2 minutes and 55 seconds
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment