summaryrefslogtreecommitdiff
path: root/packages/views/signoff.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-02-09 16:43:40 -0600
committerDan McGee <dan@archlinux.org>2013-02-09 16:50:45 -0600
commit5566d43a7734f6bb2f48d5d511351da12ddc5cc1 (patch)
treed575d2c100a039100771fdc9ed056d33da23b6c3 /packages/views/signoff.py
parent8524a6057c4b99a620850494a22eb3d1f56bee68 (diff)
Use 'update_fields' model.save() kwarg
This was added in Django 1.5 and allows saving only a subset of a model's fields. It makes sense in a few cases to utilize it. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages/views/signoff.py')
-rw-r--r--packages/views/signoff.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/views/signoff.py b/packages/views/signoff.py
index 17f3095c..c37aa0fc 100644
--- a/packages/views/signoff.py
+++ b/packages/views/signoff.py
@@ -45,7 +45,7 @@ def signoff_package(request, name, repo, arch, revoke=False):
except Signoff.DoesNotExist:
raise Http404
signoff.revoked = now()
- signoff.save()
+ signoff.save(update_fields=('revoked',))
created = False
else:
# ensure we should even be accepting signoffs