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