forked from DGNum/gestioCOF
Add & fix urls naming
This commit is contained in:
parent
0876a004e5
commit
f8361b9114
4 changed files with 7 additions and 5 deletions
|
@ -86,13 +86,15 @@ urlpatterns = [
|
||||||
url(r'^utile_bda$', gestioncof_views.utile_bda,
|
url(r'^utile_bda$', gestioncof_views.utile_bda,
|
||||||
name='utile_bda'),
|
name='utile_bda'),
|
||||||
url(r'^utile_bda/bda_diff$', gestioncof_views.liste_bdadiff),
|
url(r'^utile_bda/bda_diff$', gestioncof_views.liste_bdadiff),
|
||||||
url(r'^utile_cof/diff_cof$', gestioncof_views.liste_diffcof),
|
url(r'^utile_cof/diff_cof$', gestioncof_views.liste_diffcof,
|
||||||
|
name='ml_diffcof'),
|
||||||
url(r'^utile_bda/bda_revente$', gestioncof_views.liste_bdarevente),
|
url(r'^utile_bda/bda_revente$', gestioncof_views.liste_bdarevente),
|
||||||
url(r'^k-fet/', include('kfet.urls')),
|
url(r'^k-fet/', include('kfet.urls')),
|
||||||
url(r'^cms/', include(wagtailadmin_urls)),
|
url(r'^cms/', include(wagtailadmin_urls)),
|
||||||
url(r'^documents/', include(wagtaildocs_urls)),
|
url(r'^documents/', include(wagtaildocs_urls)),
|
||||||
# djconfig
|
# djconfig
|
||||||
url(r"^config", gestioncof_views.ConfigUpdate.as_view()),
|
url(r"^config", gestioncof_views.ConfigUpdate.as_view(),
|
||||||
|
name='config.edit'),
|
||||||
]
|
]
|
||||||
|
|
||||||
if 'debug_toolbar' in settings.INSTALLED_APPS:
|
if 'debug_toolbar' in settings.INSTALLED_APPS:
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
{% block realcontent %}
|
{% block realcontent %}
|
||||||
<h2>Modifier mon profil</h2>
|
<h2>Modifier mon profil</h2>
|
||||||
<form id="profile form-horizontal" method="post" action="{% url 'gestioncof.views.profile' %}">
|
<form id="profile form-horizontal" method="post" action="{% url 'profile' %}">
|
||||||
<div class="row" style="margin: 0 15%;">
|
<div class="row" style="margin: 0 15%;">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<fieldset"center-block">
|
<fieldset"center-block">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<h3>COF</h3>
|
<h3>COF</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="{% url 'cof.membres_export' %}">Export des membres du COF</a></li>
|
<li><a href="{% url 'cof.membres_export' %}">Export des membres du COF</a></li>
|
||||||
<li><a href="{% url 'gestioncof.views.liste_diffcof' %}">Diffusion COF</a></li>
|
<li><a href="{% url 'ml_diffcof' %}">Diffusion COF</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h3>Mega</h3>
|
<h3>Mega</h3>
|
||||||
|
|
|
@ -72,7 +72,7 @@ class UtilsViewTests(ViewTestCaseMixin, TestCase):
|
||||||
|
|
||||||
|
|
||||||
class MailingListDiffCof(ViewTestCaseMixin, TestCase):
|
class MailingListDiffCof(ViewTestCaseMixin, TestCase):
|
||||||
url_name = 'gestioncof.views.liste_diffcof'
|
url_name = 'ml_diffcof'
|
||||||
url_expected = '/utile_cof/diff_cof'
|
url_expected = '/utile_cof/diff_cof'
|
||||||
|
|
||||||
auth_user = 'staff'
|
auth_user = 'staff'
|
||||||
|
|
Loading…
Reference in a new issue