Fix bug with pagination usage.
[django-migdal.git] / migdal / __init__.py
index dda9569..b3e09da 100644 (file)
@@ -17,6 +17,7 @@ class Settings(AppSettings):
             EntryType('news', _('news'), commentable=True, on_main=True, promotable=True),
             EntryType('publications', _('publications')),
             EntryType('info', _('info')),
+            EntryType('event', _('events')),
         )
     TYPE_SUBMIT = 'news'
     TAXONOMIES = (
@@ -44,7 +45,16 @@ class Settings(AppSettings):
     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')