From 6172b6dd09f932de8db7ab69641370d78d25a4c2 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 11 Mar 2013 18:48:29 -0500 Subject: Make todolists fully public Remove the login_required decorator from the index and detail views to allow everyone to see the same thing. Of course, when I say "same" here, unauthenticated users don't see the same links developers do to mark packages complete and incomplete. Signed-off-by: Dan McGee --- templates/todolists/view.html | 2 ++ todolists/urls.py | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/templates/todolists/view.html b/templates/todolists/view.html index 1b9a9e37..a96297cf 100644 --- a/templates/todolists/view.html +++ b/templates/todolists/view.html @@ -45,8 +45,10 @@

Filter Todo List Packages

{% endfor %} + {% if user.is_authenticated %}
+ {% endif %}
diff --git a/todolists/urls.py b/todolists/urls.py index a4f93da7..6617d7dd 100644 --- a/todolists/urls.py +++ b/todolists/urls.py @@ -1,18 +1,18 @@ from django.conf.urls import patterns -from django.contrib.auth.decorators import login_required, permission_required +from django.contrib.auth.decorators import permission_required from .views import (view_redirect, view, todolist_list, add, edit, flag, list_pkgbases, DeleteTodolist) urlpatterns = patterns('', - (r'^$', login_required(todolist_list)), + (r'^$', todolist_list), # old todolists URLs, permanent redirect view so we don't break all links (r'^(?P\d+)/$', view_redirect), (r'^add/$', permission_required('todolists.add_todolist')(add)), - (r'^(?P[-\w]+)/$', login_required(view)), + (r'^(?P[-\w]+)/$', view), (r'^(?P[-\w]+)/edit/$', permission_required('todolists.change_todolist')(edit)), (r'^(?P[-\w]+)/delete/$', -- cgit v1.2.3-54-g00ecf