1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2024-12-26 03:42:20 +00:00
plateforme-corres2math/apps/api/serializers.py
Yohann D'ANELLO a68a7b681d Try to add CI
2020-09-24 11:44:43 +02:00

17 lines
360 B
Python

from django.contrib.auth.models import User
from rest_framework import serializers
class UserSerializer(serializers.ModelSerializer):
"""
Serialize a User object into JSON.
"""
class Meta:
model = User
exclude = (
'username',
'password',
'groups',
'user_permissions',
)