update all_product
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import datetime
|
||||
from operator import index
|
||||
import re
|
||||
from datetime import timedelta
|
||||
from itertools import product
|
||||
@@ -671,6 +672,11 @@ class AllProductsTransport(BaseModel): # بارهای تمامی محصولات
|
||||
unloading = models.CharField(max_length=255, null=True, blank=True) # تخلیه
|
||||
out = models.BooleanField(default=False) # Out (True/False)
|
||||
|
||||
class Meta:
|
||||
indexes = [
|
||||
models.Index(fields=['trash', '-date', '-id'], name='apt_trash_date_id_idx'),
|
||||
]
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
# تصحیح استان/شهر مبدا
|
||||
if self.origin_province:
|
||||
|
||||
Reference in New Issue
Block a user