summaryrefslogtreecommitdiffstats
path: root/todolists
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-12-31 18:36:29 +0100
committerDan McGee <dan@archlinux.org>2012-12-31 18:36:29 +0100
commiteea59cd12b6f17c5f0f96805205bc4967143f658 (patch)
treef2422448898b331cec98e16934d695b5c55b028a /todolists
parent7952fe0ede3a5a68a64f05eccb180194394652f3 (diff)
downloadarchweb-eea59cd12b6f17c5f0f96805205bc4967143f658.tar.gz
archweb-eea59cd12b6f17c5f0f96805205bc4967143f658.tar.xz
Set user on todolist packages when flag status changes
This will allow us to see who last changed the status of a todolist item. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'todolists')
-rw-r--r--todolists/views.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/todolists/views.py b/todolists/views.py
index 32ee7cc..f4f9ab2 100644
--- a/todolists/views.py
+++ b/todolists/views.py
@@ -46,6 +46,7 @@ def flag(request, slug, pkg_id):
tlpkg.status = TodolistPackage.COMPLETE
else:
tlpkg.status = TodolistPackage.INCOMPLETE
+ tlpkg.user = request.user
tlpkg.save()
if request.is_ajax():
data = {