summaryrefslogtreecommitdiffstats
path: root/todolists/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'todolists/views.py')
-rw-r--r--todolists/views.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/todolists/views.py b/todolists/views.py
index fe8b1d4..3a96dc8 100644
--- a/todolists/views.py
+++ b/todolists/views.py
@@ -1,6 +1,6 @@
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import get_object_or_404
-from django.contrib.auth.decorators import login_required, user_passes_test
+from django.contrib.auth.decorators import user_passes_test
from django.contrib.auth.models import User
from archweb_dev.main.utils import render_response
from archweb_dev.main.models import Todolist, TodolistPkg, Package
@@ -10,7 +10,6 @@ from archweb_dev.main.models import Arch, Repo
import django.db
IntegrityError = django.db.backend.Database.IntegrityError
-@login_required
def flag(request, listid, pkgid):
list = get_object_or_404(Todolist, id=listid)
pkg = get_object_or_404(TodolistPkg, id=pkgid)
@@ -18,7 +17,6 @@ def flag(request, listid, pkgid):
pkg.save()
return HttpResponseRedirect('/todo/%s/' % (listid))
-@login_required
def view(request, listid):
list = get_object_or_404(Todolist, id=listid)
pkgs = TodolistPkg.objects.filter(list=list.id).order_by('pkg')
@@ -27,7 +25,6 @@ def view(request, listid):
'todolists/view.html',
{'list':list,'pkgs':pkgs})
-@login_required
def list(request):
lists = Todolist.objects.order_by('-date_added')
for l in lists:
@@ -35,7 +32,6 @@ def list(request):
list=l.id,complete=False).count() == 0
return render_response(request, 'todolists/list.html', {'lists':lists})
-@login_required
@user_passes_test(lambda u: u.has_perm('todolists.add_todolist'))
def add(request):
if request.POST: