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