delete mathod qoshildi

This commit is contained in:
Husanjonazamov
2026-03-31 12:06:36 +05:00
parent 8601d123ed
commit a7c8c80d29
3 changed files with 14 additions and 9 deletions

View File

@@ -48,7 +48,8 @@ class CategoryModel(AbstractBaseModel):
order = models.PositiveIntegerField(verbose_name=_("order"), default=0)
def __str__(self):
return f"{self.name} ({self.type})"
filial_name = self.filial.name if self.filial else "Filial yo'q"
return f"{self.name} ({self.type}) - {filial_name}"
@classmethod
def _baker(cls):