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

Closes #2578: Reorganized nested serializers

This commit is contained in:
Jeremy Stretch
2018-11-12 11:36:44 -05:00
parent 04ae6ec7af
commit 75f0d8ee90
18 changed files with 788 additions and 801 deletions

View File

@@ -1,10 +1,4 @@
from django.contrib.auth.models import User
from utilities.api import WritableNestedSerializer
from .nested_serializers import *
class NestedUserSerializer(WritableNestedSerializer):
class Meta:
model = User
fields = ['id', 'username']
# Placeholder for future serializers