return tuple(lang for lang in settings.LANGUAGES if lang not in self.OBLIGATORY_LANGUAGES)
OPTIONAL_LANGUAGES = None
+ PUBLISH_DATE_EDITABLE = False
+
app_settings = Settings('MIGDAL')
return field
date_hierarchy = 'date'
- readonly_fields = ('date', 'changed_at', 'first_published_at') + \
- translated_fields(('published_at',))
+ readonly_fields = ('date', 'changed_at') + translated_fields(('published_at',))
+ if app_settings.PUBLISH_DATE_EDITABLE:
+ readonly_fields += ('first_published_at',)
_promo_if_necessary = ('promo',) if typ.promotable else ()
fieldsets = (