2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 21:45:39 +00:00

Added User API and serializer

This commit is contained in:
Oliver Walters
2017-04-20 22:40:59 +10:00
parent 92cbd43f0f
commit 4777b02080
12 changed files with 79 additions and 2 deletions

View File

@ -0,0 +1,15 @@
from rest_framework import serializers
from django.contrib.auth.models import User
class UserSerializer(serializers.HyperlinkedModelSerializer):
""" Serializer for a User
"""
class Meta:
model = User
fields = ('username',
'first_name',
'last_name',
'email',)