Commit 99c120fd4671be4d50f8adbebba9e53185ae37be
1 parent
a1dbe319
Exists in
master
and in
5 other branches
added users serializers #271
Showing
1 changed file
with
9 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,9 @@ |
1 | +from rest_framework import serializers | |
2 | +from .models import User | |
3 | + | |
4 | +class UserSerializer(serializers.ModelSerializer): | |
5 | + class Meta: | |
6 | + model = User | |
7 | + fields = ('username','email','name','city','state','gender','image','birth_date','phone' | |
8 | + 'cpf','type_profile','titration','year_tritation','institution','curriculum','date_created', | |
9 | + 'is_staff','is_active') | ... | ... |