diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-11-15 01:00:13 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-11-15 01:00:13 -0500 |
commit | aa2836cb3859e05e9524def5ec37706e3299205c (patch) | |
tree | ca1de8b399b578aeb5b86490451a136d9986ad1a /packages/views | |
parent | 12984bca989485430d3a1be9ea35d3f61239b28f (diff) | |
parent | c3ebf7deae0bb04f1637e9a52e7f9f38d454fec7 (diff) |
Merge tag 'release_2012-02-11'
Quick release
Conflicts:
requirements.txt
requirements_prod.txt
Diffstat (limited to 'packages/views')
-rw-r--r-- | packages/views/flag.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/views/flag.py b/packages/views/flag.py index f74a718a..ad1b04db 100644 --- a/packages/views/flag.py +++ b/packages/views/flag.py @@ -61,9 +61,11 @@ def flag(request, name, repo, arch): @transaction.commit_on_success def perform_updates(): - pkgs.update(flag_date=datetime.utcnow()) + now = datetime.utcnow() + pkgs.update(flag_date=now) # store our flag request - flag_request = FlagRequest(user_email=email, message=message, + flag_request = FlagRequest(created=now, + user_email=email, message=message, ip_address=ip_addr, pkgbase=pkg.pkgbase, version=version, repo=pkg.repo, num_packages=len(flagged_pkgs)) |