diff --git a/gestioncof/forms.py b/gestioncof/forms.py index 373d308e..5d936885 100644 --- a/gestioncof/forms.py +++ b/gestioncof/forms.py @@ -336,7 +336,8 @@ class AdminEventForm(forms.Form): class CalendarForm(forms.ModelForm): - events = forms.BooleanField(initial=True, label="S'abonner aux événements") + subscribe_to_events = forms.BooleanField(initial=True, + label="S'abonner aux événements") shows = forms.ModelMultipleChoiceField( label="S'abonner aux spectacles suivants", queryset=Spectacle.objects.filter(tirage__active=True), diff --git a/gestioncof/views.py b/gestioncof/views.py index 25fff177..e954fde8 100644 --- a/gestioncof/views.py +++ b/gestioncof/views.py @@ -640,7 +640,7 @@ def calendar(request): {'form': form, 'success': True}) else: return render(request, "calendar_subscription.html", - {'form': form, 'error': "Formulaire incorect"}) + {'form': form, 'error': "Formulaire incorrect"}) else: return render(request, "calendar_subscription.html", {'form': CalendarForm(instance=instance)})