Загрузка данных


from django.db import models
class Personage(models.Model):
    title = models.CharField('Имя героя', max_length=100)
    fraction = models.CharField('Фракция', max_length=50)
    description = models.TextField('История персонажа')
    power = models.IntegerField('Уровень силы')
    image = models.ImageField('Фото', upload_to='personages/')
    def __str__(self):
        return self.title