rm useless view and its template

This commit is contained in:
Guilhem Saurel 2016-06-28 00:32:30 +02:00
parent a365d8ce84
commit 9426c28f0f
3 changed files with 0 additions and 26 deletions

View File

@ -1,20 +0,0 @@
{% extends 'base.html' %}
{% load bootstrap3 %}
{% block admintab %}active{% endblock %}
{% block content %}
<div class="page-header">
<h1>Participant: {{ participant }}</h1>
</div>
<dl class="dl-horizontal">
<dt>User</dt><dd>{{ participation.user.profil }}</dd>
<dt>Arrival</dt><dd>{{ participation.arrival }}</dd>
</dl>
<!-- TODO -->
{% endblock %}

View File

@ -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<username>[\w.@+-]+)$', views.participant, name='show-participation'),
url(r'', include('django.contrib.auth.urls')),
]

View File

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