serializer short
This commit is contained in:
parent
f6a4745dfd
commit
5502be73bb
1 changed files with 6 additions and 1 deletions
|
@ -26,4 +26,9 @@ class DeviceSerializer(serializers.ModelSerializer):
|
|||
|
||||
class Meta:
|
||||
model = Device
|
||||
exclude = ["id"]
|
||||
exclude = ["id"]
|
||||
|
||||
class DeviceSerializerShort(DeviceSerializer):
|
||||
class Meta:
|
||||
model = Device
|
||||
include = ["codename", "vendor", "name", "release", "maintainers", "cameras", "battery", "screen"]
|
Loading…
Reference in a new issue