X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/75957f735219259d3b4bc361f80ccd3d7b92a0e9..ecd1f5bc214a8ba61b65d4d00a7e7d09a8c8fa3a:/src/catalogue/models/collection.py?ds=inline diff --git a/src/catalogue/models/collection.py b/src/catalogue/models/collection.py index 739ad78ec..6f956c73e 100644 --- a/src/catalogue/models/collection.py +++ b/src/catalogue/models/collection.py @@ -17,6 +17,11 @@ class Collection(models.Model): 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')))) + listed = models.BooleanField(_('listed'), default=True, db_index=True) + role = models.CharField(max_length=128, blank=True, db_index=True, choices=[ + ('', '–'), + ('recommend', _('recommended')), + ]) class Meta: ordering = ('title',)