diff --git a/RIGS/forms.py b/RIGS/forms.py index 1aa7ded4..413e14ae 100644 --- a/RIGS/forms.py +++ b/RIGS/forms.py @@ -17,6 +17,8 @@ forms.TimeField.widget = forms.TextInput(attrs={'type': 'time'}) forms.DateTimeField.widget = forms.DateTimeInput(attrs={'type': 'datetime-local'}) # Events Shit + + class EventForm(forms.ModelForm): datetime_input_formats = list(settings.DATETIME_INPUT_FORMATS) meet_at = forms.DateTimeField(input_formats=datetime_input_formats, required=False) diff --git a/RIGS/templates/partials/event_details_form.html b/RIGS/templates/partials/event_details_form.html index 850c9532..fd35e205 100644 --- a/RIGS/templates/partials/event_details_form.html +++ b/RIGS/templates/partials/event_details_form.html @@ -1,4 +1,6 @@ {% load widget_tweaks %} +{% load l10n %} +
Event Details
@@ -39,6 +41,7 @@
+ {% localize off %}
@@ -98,6 +101,7 @@
+ {% endlocalize %} {# Status is needed on all events types and it looks good here in the form #}