Mix of Python and Django utility functions, classed etc.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

10 lines
325 B

from django.conf import settings
USE_TRANSLATABLE_FIELDS = (
getattr(settings, 'CONTENT_PLUGINS_USE_TRANSLATABLE_FIELDS', False) or
getattr(settings, 'USE_TRANSLATABLE_FIELDS', False)
)
USE_PREVIEW_DATETIME = getattr(settings, 'USE_PREVIEW_DATETIME', False)
# You also have to set PREVIEW_DATETIME = datetime(...)