forked from DGNum/gestioCOF
Répercute le déplacement du template dans les vues
This commit is contained in:
parent
ca73dc27bb
commit
8e7428a11e
1 changed files with 3 additions and 3 deletions
|
@ -686,15 +686,15 @@ def calendar(request):
|
||||||
subscription.token = uuid.uuid4()
|
subscription.token = uuid.uuid4()
|
||||||
subscription.save()
|
subscription.save()
|
||||||
form.save_m2m()
|
form.save_m2m()
|
||||||
return render(request, "calendar_subscription.html",
|
return render(request, "gestioncof/calendar_subscription.html",
|
||||||
{'form': form,
|
{'form': form,
|
||||||
'success': True,
|
'success': True,
|
||||||
'token': str(subscription.token)})
|
'token': str(subscription.token)})
|
||||||
else:
|
else:
|
||||||
return render(request, "calendar_subscription.html",
|
return render(request, "gestioncof/calendar_subscription.html",
|
||||||
{'form': form, 'error': "Formulaire incorrect"})
|
{'form': form, 'error': "Formulaire incorrect"})
|
||||||
else:
|
else:
|
||||||
return render(request, "calendar_subscription.html",
|
return render(request, "gestioncof/calendar_subscription.html",
|
||||||
{'form': CalendarForm(instance=instance),
|
{'form': CalendarForm(instance=instance),
|
||||||
'token': instance.token if instance else None})
|
'token': instance.token if instance else None})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue