class Slider models Model name models CharField max_length 75 blank Tr

1
2
3
4
5
6
7
class Slider(models.Model):
name = models.CharField(max_length=75, blank=True)
text = models.TextField(null=True, blank=True)
is_public = models.BooleanField(default=True)
def __unicode__(self):
return u'Слайд: %s' % self.name