EntryType('news', _('news'), commentable=True, on_main=True, promotable=True),
EntryType('publications', _('publications')),
EntryType('info', _('info')),
+ EntryType('event', _('events')),
)
TYPE_SUBMIT = 'news'
TAXONOMIES = (
OBLIGATORY_LANGUAGES = None
def _more_OPTIONAL_LANGUAGES(self, value):
- return tuple(lang for lang in settings.LANGUAGES if lang not in self.OBLIGATORY_LANGUAGES)
+ if value is None:
+ return tuple(lang for lang in settings.LANGUAGES if lang not in self.OBLIGATORY_LANGUAGES)
+ else:
+ return value
OPTIONAL_LANGUAGES = None
+ def _more_LANGUAGES(self, value):
+ return self.OBLIGATORY_LANGUAGES + self.OPTIONAL_LANGUAGES
+ LANGUAGES = None
+
+ PUBLISH_DATE_EDITABLE = False
+
app_settings = Settings('MIGDAL')