1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

11 lines
226 B
Python
Raw Normal View History

from django.contrib.auth.models import User
from utilities.api import WritableNestedSerializer
class NestedUserSerializer(WritableNestedSerializer):
class Meta:
model = User
fields = ['id', 'username']