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:
15
InvenTree/users/serializers.py
Normal file
15
InvenTree/users/serializers.py
Normal 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',)
|
||||
|
Reference in New Issue
Block a user