buyurtma qoshishda pdf file generate qilib botga send qiladigan qildim

This commit is contained in:
behruz-dev
2025-11-27 16:43:36 +05:00
parent b59bad4425
commit 961f6eac00
7 changed files with 85 additions and 40 deletions

View File

@@ -17,6 +17,8 @@ class Order(BaseModel):
advance = models.FloatField()
employee_name = models.CharField(max_length=200)
file = models.FileField(null=True, blank=True, upload_to='orders/files/')
def __str__(self):
return f'#{self.id} from {self.user.first_name}, total_price - {self.total_price}, paid - {self.paid_price}'