- title = models.CharField(_('title'), max_length=32767)
- sort_key = models.CharField(_('sort key'), max_length=120, db_index=True, editable=False)
- sort_key_author = models.CharField(_('sort key by author'), max_length=120, db_index=True, editable=False, default=u'')
- slug = models.SlugField(_('slug'), max_length=120, db_index=True,
- unique=True)
- common_slug = models.SlugField(_('slug'), max_length=120, db_index=True)
- language = models.CharField(_('language code'), max_length=3, db_index=True,
- default=app_settings.DEFAULT_LANGUAGE)
- description = models.TextField(_('description'), blank=True)
- created_at = models.DateTimeField(_('creation date'), auto_now_add=True, db_index=True)
- changed_at = models.DateTimeField(_('creation date'), auto_now=True, db_index=True)
- parent_number = models.IntegerField(_('parent number'), default=0)
- extra_info = jsonfield.JSONField(_('extra information'), default={})
- gazeta_link = models.CharField(blank=True, max_length=240)
- wiki_link = models.CharField(blank=True, max_length=240)
+ title = models.CharField('tytuł', max_length=32767)
+ sort_key = models.CharField('klucz sortowania', max_length=120, db_index=True, editable=False)
+ sort_key_author = models.CharField(
+ 'klucz sortowania wg autora', max_length=120, db_index=True, editable=False, default='')
+ slug = models.SlugField('slug', max_length=120, db_index=True, unique=True)
+ common_slug = models.SlugField('wspólny slug', max_length=120, db_index=True)
+ language = models.CharField('kod języka', max_length=3, db_index=True, default=app_settings.DEFAULT_LANGUAGE)
+ description = models.TextField('opis', blank=True)
+ abstract = models.TextField('abstrakt', blank=True)
+ toc = models.TextField('spis treści', blank=True)
+ created_at = models.DateTimeField('data utworzenia', auto_now_add=True, db_index=True)
+ changed_at = models.DateTimeField('data motyfikacji', auto_now=True, db_index=True)
+ parent_number = models.IntegerField('numer w ramach rodzica', default=0)
+ extra_info = models.TextField('dodatkowe informacje', default='{}')
+ gazeta_link = models.CharField(blank=True, max_length=240)
+ wiki_link = models.CharField(blank=True, max_length=240)
+ print_on_demand = models.BooleanField('druk na żądanie', default=False)
+ recommended = models.BooleanField('polecane', default=False)
+ audio_length = models.CharField('długość audio', blank=True, max_length=8)
+ preview = models.BooleanField('prapremiera', default=False)
+ preview_until = models.DateField('prapremiera do', blank=True, null=True)
+ preview_key = models.CharField(max_length=32, blank=True, null=True)
+ findable = models.BooleanField('wyszukiwalna', default=True, db_index=True)