class Compaign models Model name models CharField Название max_length

1
2
3
4
5
class Compaign(models.Model):
name = models.CharField(u'Название', max_length=255, default='')
users = models.ManyToManyField(UserProfile, verbose_name=u'Пользователи', blank=True, null=True, related_name='compaigns')
client = models.ForeignKey(Client, verbose_name=u'Клиент', null=True, related_name='compaigns')
created = models.DateTimeField(u'Время создания', blank=True)