mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-07-08 08:10:21 +02:00
django-constance and traduction
This commit is contained in:
@ -327,9 +327,12 @@ CONSTANCE_ADDITIONAL_FIELDS = {
|
||||
}
|
||||
CONSTANCE_CONFIG = {
|
||||
'BANNER_MESSAGE': ('', 'Some message', str),
|
||||
'BANNER_TYPE': ('Info', 'Banner type', 'banner_type'),
|
||||
'BANNER_TYPE': ('info', 'Banner type', 'banner_type'),
|
||||
'MAINTENANCE': (False, 'check for mainteance mode', bool),
|
||||
'MAINTENANCE_MESSAGE': ('', 'Some maintenance message', str),
|
||||
}
|
||||
CONSTANCE_CONFIG_FIELDSETS = {
|
||||
'Maintenance': ('MAINTENANCE_MESSAGE', 'MAINTENANCE'),
|
||||
'Banner': ('BANNER_MESSAGE', 'BANNER_TYPE'),
|
||||
}
|
||||
CONSTANCE_BACKEND = 'constance.backends.database.DatabaseBackend'
|
||||
|
Reference in New Issue
Block a user