fix - change name to national code in transaction rancher
This commit is contained in:
@@ -124,7 +124,7 @@ class InventoryQuotaSaleTransactionSerializer(serializers.ModelSerializer):
|
|||||||
if instance.rancher:
|
if instance.rancher:
|
||||||
representation['rancher'] = {
|
representation['rancher'] = {
|
||||||
'id': instance.rancher.id,
|
'id': instance.rancher.id,
|
||||||
'name': instance.rancher.national_code
|
'national_code': instance.rancher.national_code
|
||||||
}
|
}
|
||||||
|
|
||||||
if instance.seller_organization:
|
if instance.seller_organization:
|
||||||
|
|||||||
Reference in New Issue
Block a user