fix - edit quota bug on org
This commit is contained in:
@@ -61,6 +61,8 @@ class QuotaSerializer(serializers.ModelSerializer):
|
||||
representation['assigned_organizations'] = [{
|
||||
"name": org.name, "id": org.id
|
||||
} for org in assigned_orgs]
|
||||
else:
|
||||
org = None
|
||||
|
||||
if instance.sale_unit:
|
||||
representation['sale_unit'] = product_serializers.SaleUnitSerializer(
|
||||
|
||||
Reference in New Issue
Block a user