1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 18:08:21 +02:00

Polymorphic types

This commit is contained in:
Yohann D'ANELLO
2020-02-07 20:47:49 +01:00
parent e8e22541fa
commit f52a89637c
7 changed files with 46 additions and 24 deletions

View File

@ -9,7 +9,7 @@ from .activity.urls import register_activity_urls
from .members.urls import register_members_urls
from .note.urls import register_note_urls
class UserSerializer(serializers.HyperlinkedModelSerializer):
class UserSerializer(serializers.ModelSerializer):
"""
REST API Serializer for Users.
The djangorestframework plugin will analyse the model `User` and parse all fields in the API.