Skip to content
Snippets Groups Projects
Verified Commit 1dbd5447 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Add weekday field for constance

parent ca7262f5
No related branches found
No related tags found
1 merge request!128Add weekday field for constance
Pipeline #678 failed
......@@ -3,6 +3,7 @@ import sys
from glob import glob
from django.utils.translation import gettext_lazy as _
from calendarweek.django import i18n_day_name_choices_lazy
from dynaconf import LazySettings
from easy_thumbnails.conf import Settings as thumbnail_settings
......@@ -314,6 +315,10 @@ CONSTANCE_ADDITIONAL_FIELDS = {
("dutch", "Doe John"),
)
}],
"weekday_field": ["django.forms.fields.ChoiceField", {
'widget': 'django.forms.Select',
"choices": i18n_day_name_choices_lazy
}],
}
CONSTANCE_CONFIG = {
"SITE_TITLE": ("AlekSIS", _("Site title"), "char_field"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment