structure and basic setup
This commit is contained in:
1 parent
2543f63f7f
commit
a4807b306b
36 files changed
+5070
-2
No files matched your search
@@ -0,0 +1,10 @@
|
||||
from rest_framework.serializers import ModelSerializer, ValidatedModelSerializer
|
||||
|
||||
from dcim.models import DeviceRole
|
||||
|
||||
class PreDeviceRoleSerializer(ValidatedModelSerializer):
|
||||
|
||||
class Meta:
|
||||
model = DeviceRole
|
||||
fields = ('id', 'name', 'slug', 'color', 'vm_role', 'description')
|
||||
|
||||
Reference in new issue
Block a user