From 0921f32e4c1b16567cc85a1ed4859738384b3968 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Delobelle?= Date: Sat, 20 Jan 2018 16:17:57 +0100 Subject: [PATCH] cof -- Fix urls naming related to registration --- cof/urls.py | 3 ++- gestioncof/templates/gestioncof/registration_form.html | 2 +- gestioncof/templates/registration.html | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cof/urls.py b/cof/urls.py index e6e5d313..7ef80f3b 100644 --- a/cof/urls.py +++ b/cof/urls.py @@ -70,7 +70,8 @@ urlpatterns = [ url(r'^registration/empty$', gestioncof_views.registration_form2, name="empty-registration"), # Autocompletion - url(r'^autocomplete/registration$', autocomplete), + url(r'^autocomplete/registration$', autocomplete, + name='cof.registration.autocomplete'), url(r'^user/autocomplete$', gestioncof_views.user_autocomplete, name='cof-user-autocomplete'), # Interface admin diff --git a/gestioncof/templates/gestioncof/registration_form.html b/gestioncof/templates/gestioncof/registration_form.html index 8668152b..37f24cff 100644 --- a/gestioncof/templates/gestioncof/registration_form.html +++ b/gestioncof/templates/gestioncof/registration_form.html @@ -7,7 +7,7 @@ {% else %}

Inscription d'un nouveau compte (extérieur ?)

{% endif %} -
+ {% csrf_token %} {{ user_form | bootstrap }} diff --git a/gestioncof/templates/registration.html b/gestioncof/templates/registration.html index 8f05dfb0..2d7552a1 100644 --- a/gestioncof/templates/registration.html +++ b/gestioncof/templates/registration.html @@ -18,7 +18,7 @@ // On attend que la page soit prĂȘte pour executer le code $(document).ready(function() { $('input#search_autocomplete').yourlabsAutocomplete({ - url: '{% url 'gestioncof.autocomplete.autocomplete' %}', + url: '{% url 'cof.registration.autocomplete' %}', minimumCharacters: 3, id: 'search_autocomplete', choiceSelector: 'li:has(a)',