update hatching
This commit is contained in:
@@ -234,8 +234,9 @@ class Hatching(BaseModel):
|
||||
if hasattr(self, 'PedigreeName') and self.PedigreeName in correction_dict:
|
||||
self.PedigreeName = correction_dict[self.PedigreeName]
|
||||
try:
|
||||
date1 = AllProductsTransport.objects.filter(hatching__id=self.id, trash=False, product='جوجه یک روزه گوشتی').order_by('date').first().date
|
||||
date = datetime.datetime(year=date1.year, month=date1.month, day=date1.day, hour=10,
|
||||
date1 = AllProductsTransport.objects.filter(hatching__id=self.id, trash=False, product='جوجه یک روزه گوشتی').order_by('date').first()
|
||||
if date1:
|
||||
date = datetime.datetime(year=date1.date.year, month=date1.date.month, day=date1.date.day, hour=10,
|
||||
minute=1,
|
||||
second=1)
|
||||
except:
|
||||
|
||||
Reference in New Issue
Block a user