added descriptions

This commit is contained in:
nabijonovdavronbek619@gmail.com
2025-12-22 13:06:28 +05:00
parent 991c0721e2
commit 308365630d
6 changed files with 8 additions and 4 deletions

View File

@@ -5,9 +5,13 @@ class Product(models.Model):
name_uz = models.CharField(max_length=255)
name_ru = models.CharField(max_length=255)
image = models.ImageField(upload_to='products/')
# Description (uz & ru)
description_uz = models.TextField(blank=True, null=True)
description_ru = models.TextField(blank=True, null=True)
def __str__(self):
return self.name_uz
return f"{self.name_uz} / {self.name_ru}"
# ======== PRODUCT FEATURES (KEY-VALUE) ========