From 9426c28f0f25f3678e79dd589bc12ff7de2cfa25 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Tue, 28 Jun 2016 00:32:30 +0200 Subject: [PATCH] rm useless view and its template --- accounts/templates/admin/participant.html | 20 -------------------- accounts/urls.py | 1 - accounts/views.py | 5 ----- 3 files changed, 26 deletions(-) delete mode 100644 accounts/templates/admin/participant.html diff --git a/accounts/templates/admin/participant.html b/accounts/templates/admin/participant.html deleted file mode 100644 index aa97fca..0000000 --- a/accounts/templates/admin/participant.html +++ /dev/null @@ -1,20 +0,0 @@ -{% extends 'base.html' %} - -{% load bootstrap3 %} - -{% block admintab %}active{% endblock %} - -{% block content %} - - - -
-
User
{{ participation.user.profil }}
-
Arrival
{{ participation.arrival }}
-
- - - -{% endblock %} diff --git a/accounts/urls.py b/accounts/urls.py index 1e54ed7..31d2b12 100644 --- a/accounts/urls.py +++ b/accounts/urls.py @@ -11,6 +11,5 @@ urlpatterns = [ url(r'^login/$', auth_views.login, {'extra_context': {'buttons': [views.RESET_PASSWORD_BUTTON]}}, name='login'), url(r'^logout/$', auth_views.logout, {'next_page': settings.LOGOUT_REDIRECT_URL}, name='logout'), url(r'^admin/participants/$', views.ParticipantList.as_view(), name='participants'), - url(r'^admin/participant/(?P[\w.@+-]+)$', views.participant, name='show-participation'), url(r'', include('django.contrib.auth.urls')), ] diff --git a/accounts/views.py b/accounts/views.py index 4561fd7..7ad39ca 100644 --- a/accounts/views.py +++ b/accounts/views.py @@ -42,11 +42,6 @@ class ParticipantList(StaffRequiredMixin, ListView): queryset = Participation.on_site.all() -def participant(request, username): - return render(request, 'admin/participant.html', - {'participant': get_object_or_404(Participation, user__username=username)}) - - @login_required def edit(request, username):