2.1.1 import country flags

This commit is contained in:
SDE
2024-12-05 17:38:08 +03:00
parent a140ffe523
commit e56d29c322
262 changed files with 6079 additions and 3 deletions

View File

@@ -23,6 +23,10 @@ class Country(BaseModel):
parsing_finished_DT = models.DateTimeField(verbose_name=_('Дата и время завершения парсинга'), blank=True, null=True)
flag = models.ImageField(
upload_to='uploads/flags/', verbose_name=_('Флаг'),
null=True, blank=True, help_text=u'')
def __str__(self):
if self.name:
return f'{self.name}'