Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit 742eeb0c087451daa03a2204430f132b1db5e4ad
Author: Bohuslav Kabrda <bkabrda(a)redhat.com>
Date: Tue Apr 2 11:32:43 2013 +0200
Store username and coprname with legal-flag action
---------------------------------------------------------------
.../coprs/views/coprs_ns/coprs_general.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/coprs_frontend/coprs/views/coprs_ns/coprs_general.py
b/coprs_frontend/coprs/views/coprs_ns/coprs_general.py
index 8c63eee..4203af5 100644
--- a/coprs_frontend/coprs/views/coprs_ns/coprs_general.py
+++ b/coprs_frontend/coprs/views/coprs_ns/coprs_general.py
@@ -268,6 +268,8 @@ def copr_legal_flag(username, coprname):
object_type='copr',
object_id=copr.id,
message=form.comment.data,
+ old_value='{0}/{1}'.format(username, coprname),
+ new_value='{0}/{1}'.format(username, coprname),
created_on=int(time.time()))
db.session.add(action)
db.session.commit()