[copr] master: Properly prefill the permissions apply form (ed727a5)
bkabrda at fedorahosted.org
bkabrda at fedorahosted.org
Fri Jan 11 14:01:26 UTC 2013
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit ed727a50dfb80d5755a3d92d3ed33e6664e98ae1
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date: Fri Jan 11 15:00:58 2013 +0100
Properly prefill the permissions apply form
>---------------------------------------------------------------
.../coprs/views/coprs_ns/coprs_general.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/coprs_frontend/coprs/views/coprs_ns/coprs_general.py b/coprs_frontend/coprs/views/coprs_ns/coprs_general.py
index 2cd455c..73ac8e7 100644
--- a/coprs_frontend/coprs/views/coprs_ns/coprs_general.py
+++ b/coprs_frontend/coprs/views/coprs_ns/coprs_general.py
@@ -108,7 +108,8 @@ def copr_detail(username, coprname, build_form = None):
if flask.g.user.can_edit(copr):
permissions_form = forms.PermissionsFormFactory.create_form_cls(permissions)()
else:
- permissions_applier_form = forms.PermissionsApplierFormFactory.create_form_cls(user_perm)()
+ # https://github.com/ajford/flask-wtf/issues/58
+ permissions_applier_form = forms.PermissionsApplierFormFactory.create_form_cls(user_perm)(formdata=None)
return flask.render_template('coprs/detail.html',
copr = copr,
More information about the copr-devel
mailing list