update hatching
This commit is contained in:
@@ -806,7 +806,8 @@ class HatchingsViewSet(viewsets.ModelViewSet):
|
|||||||
'MenuUserAccess', 'LogTableName', 'LogTableAlias', 'PageTitle',
|
'MenuUserAccess', 'LogTableName', 'LogTableAlias', 'PageTitle',
|
||||||
'PartIdCode', 'UnitTypeName'
|
'PartIdCode', 'UnitTypeName'
|
||||||
]
|
]
|
||||||
if int(request.data['GoodSum']['loadingSum ']) > 0:
|
good_sum = request.data.get('GoodSum', [])
|
||||||
|
if int(good_sum.get('loadingSum ')) > 0:
|
||||||
for key in same_keys:
|
for key in same_keys:
|
||||||
if key in request.data and request.data[key] is not None:
|
if key in request.data and request.data[key] is not None:
|
||||||
poultry_data[key] = request.data[key]
|
poultry_data[key] = request.data[key]
|
||||||
|
|||||||
Reference in New Issue
Block a user