summaryrefslogtreecommitdiff
path: root/papillon/polls/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'papillon/polls/views.py')
-rw-r--r--papillon/polls/views.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/papillon/polls/views.py b/papillon/polls/views.py
index 990c217..88d1f8c 100644
--- a/papillon/polls/views.py
+++ b/papillon/polls/views.py
@@ -67,7 +67,7 @@ def index(request):
response_dct['categories'] = Category.objects.all()
if 'bad_poll' in request.GET:
response_dct['error'] = _("The poll requested doesn't exist (anymore?)")
- return render(request, 'main.html', response_dct,
+ return render(request, 'polls/main.html', response_dct,
context_instance=RequestContext(request))
@@ -79,7 +79,7 @@ def category(request, category_id):
category = Category.objects.get(id=int(category_id))
response_dct['category'] = category
response_dct['polls'] = Poll.objects.filter(public=True, category=category)
- return render(request, 'category.html', response_dct)
+ return render(request, 'polls/category.html', response_dct)
def create(request):
@@ -113,7 +113,7 @@ def create(request):
else:
form = CreatePollForm()
response_dct['form'] = form
- return render(request, 'create.html', response_dct)
+ return render(request, 'polls/create.html', response_dct)
def edit(request, admin_url):
@@ -145,7 +145,7 @@ def edit(request, admin_url):
reverse('edit', args=[poll.admin_url]))
response_dct['choices_url'] = request.build_absolute_uri(
reverse('edit_choices_admin', args=[poll.admin_url]))
- return render(request, 'edit.html', response_dct)
+ return render(request, 'polls/edit.html', response_dct)
def editChoicesAdmin(request, admin_url):
@@ -180,9 +180,9 @@ def editChoices(request, response_dct, admin=False):
'''Edition of choices.
'''
poll = response_dct['poll']
- tpl = 'editChoicesAdmin.html'
+ tpl = 'polls/editChoicesAdmin.html'
if not admin:
- tpl = 'editChoicesUser.html'
+ tpl = 'polls/editChoicesUser.html'
Form = ChoiceForm
if poll.dated_choices:
Form = DatedChoiceForm
@@ -509,4 +509,4 @@ def poll(request, poll_url):
response_dct['hide_vote'] = False
response_dct['form_comment'] = CommentForm()
response_dct['max_comment_nb'] = settings.MAX_COMMENT_NB
- return render(request, 'vote.html', response_dct) \ No newline at end of file
+ return render(request, 'polls/vote.html', response_dct) \ No newline at end of file