- title = models.CharField(_('title'), max_length=120, db_index=True)
- slug = models.SlugField(_('slug'), max_length=120, primary_key=True)
- description = models.TextField(_('description'), null=True, blank=True)
- book_slugs = models.TextField(_('book slugs'))
- kind = models.CharField(_('kind'), max_length=10, blank=False, default='book', db_index=True,
- choices=(('book', _('book')), ('picture', _('picture'))))
+ title = models.CharField('tytuł', max_length=120, db_index=True)
+ slug = models.SlugField('slug', max_length=120, primary_key=True)
+ description = models.TextField('opis', blank=True)
+ book_slugs = models.TextField('slugi książek')
+ authors = models.ManyToManyField(
+ 'Tag',
+ limit_choices_to={'category': 'author'},
+ blank=True
+ )
+ kind = models.CharField('rodzaj', max_length=10, blank=False, default='book', db_index=True,
+ choices=(('book', 'książki'), ('picture', 'obrazy')))
+ listed = models.BooleanField('na liście', default=True, db_index=True)
+ role = models.CharField(max_length=128, blank=True, db_index=True, choices=[
+ ('', '–'),
+ ('recommend', 'polecane'),
+ ])