mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
19 lines
280 B
Python
19 lines
280 B
Python
from django.contrib.auth.models import User
|
|
|
|
from utilities.api import WritableNestedSerializer
|
|
|
|
_all_ = [
|
|
'NestedUserSerializer',
|
|
]
|
|
|
|
|
|
#
|
|
# Users
|
|
#
|
|
|
|
class NestedUserSerializer(WritableNestedSerializer):
|
|
|
|
class Meta:
|
|
model = User
|
|
fields = ['id', 'username']
|