This commit is contained in:
Martin Pépin 2016-07-15 14:04:01 +02:00
parent b5704c7f6d
commit 301c374ee4
2 changed files with 3 additions and 2 deletions

View file

@ -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),

View file

@ -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)})