Да. class Person(CommonHasImage): def path_and_rename(self, instance, filename): self.img_upload_to = 'img/persons/' super().path_and_rename(self, instance, filename) img = models.ImageField('Фото', upload_to=path_and_rename, null=True, blank=True)
Обсуждают сегодня