fnp
/
redakcja.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
error page
[redakcja.git]
/
src
/
redakcja
/
api
/
serializers.py
1
from django.contrib.auth.models import User
2
from rest_framework import serializers
3
4
5
class UserSerializer(serializers.ModelSerializer):
6
class Meta:
7
model = User
8
fields = ['id', 'username']