add province id to device organizatiomn serializer
This commit is contained in:
@@ -19,7 +19,8 @@ class DeviceSerializer(ModelSerializer):
|
|||||||
|
|
||||||
representation['organization'] = {
|
representation['organization'] = {
|
||||||
'name': instance.organization.name,
|
'name': instance.organization.name,
|
||||||
'id': instance.organization.id
|
'id': instance.organization.id,
|
||||||
|
'province': instance.organization.province.id
|
||||||
}
|
}
|
||||||
|
|
||||||
return representation
|
return representation
|
||||||
|
|||||||
Reference in New Issue
Block a user