2.1.1 import country flags
This commit is contained in:
@@ -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}'
|
||||
|
||||
Reference in New Issue
Block a user