forked from AFPy/PonyConf
rm useless view and its template
This commit is contained in:
parent
a365d8ce84
commit
9426c28f0f
|
@ -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 %}
|
|
@ -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')),
|
||||
]
|
||||
|
|
|
@ -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):
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user