summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-02-16 20:33:37 -0600
committerDan McGee <dan@archlinux.org>2010-02-16 20:33:37 -0600
commit11e1c2ef82c0b990cec10e5f4cdfbb0c6031bdba (patch)
treecd5556cfd40a123989a915b8b28a85e3330d40d5 /packages
parent029359fdd55bca0f325a9c59ec3d815d87a3125f (diff)
More save() -> update() cleanup
Use update() instead of for x in y: save(). Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages')
-rw-r--r--packages/views.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/views.py b/packages/views.py
index 56c4f7d1..d482c69d 100644
--- a/packages/views.py
+++ b/packages/views.py
@@ -258,9 +258,7 @@ def flag(request, pkgid):
# flag all architectures
pkgs = Package.objects.filter(
pkgname=pkg.pkgname, repo=pkg.repo)
- for package in pkgs:
- package.needupdate = 1
- package.save()
+ pkgs.update(needupdate=True)
if not pkg.maintainer:
toemail = 'arch-notifications@archlinux.org'