mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-26 18:37:12 +00:00
Small fix
This commit is contained in:
parent
5633f0123d
commit
e8e22541fa
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user