added descriptions
This commit is contained in:
Binary file not shown.
@@ -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) ========
|
||||
|
||||
Reference in New Issue
Block a user