X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/ce728e78bb55eb75753f40dc5cd0997a53e7dd27..5af5cc14f6b2ecddcad714053e048e39d52ca02d:/migdal/__init__.py diff --git a/migdal/__init__.py b/migdal/__init__.py index 97496e5..0a04b06 100644 --- a/migdal/__init__.py +++ b/migdal/__init__.py @@ -14,16 +14,18 @@ class Settings(AppSettings): # Types of entries: # (slug, commentable, on main) TYPES = ( - EntryType('news', _('news'), commentable=True, on_main=True), - EntryType('publications', _('publications'), commentable=False, on_main=False), - EntryType('info', _('info'), commentable=False, on_main=False), + EntryType('news', _('news'), commentable=True, on_main=True, promotable=True), + EntryType('publications', _('publications')), + EntryType('info', _('info')), ) TYPE_SUBMIT = 'news' TAXONOMIES = ( ('topics', _('topics')), ('types', _('types')), ) - LAST_COMMENTS = 10 + LAST_COMMENTS = 5 + + MENU = [] TYPES_DICT = None def _more_TYPES_DICT(self, value): @@ -33,6 +35,10 @@ class Settings(AppSettings): def _more_TYPES_ON_MAIN(self, value): return tuple(t.db for t in self.TYPES if t.on_main) + TYPES_PROMOTABLE = None + def _more_TYPES_PROMOTABLE(self, value): + return tuple(t.db for t in self.TYPES if t.promotable) + OBLIGATORY_LANGUAGES = None def _more_OBLIGATORY_LANGUAGES(self, value): return value or tuple(lang for lang in settings.LANGUAGES