Skip to content
Snippets Groups Projects
Commit 0041d016 authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

OrgsFilterForm: Návrat z POST na GET

parent 2c36ce73
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !92. Comments created here will be created in the context of that merge request.
......@@ -238,8 +238,9 @@ def org_orgs():
q = sess.query(db.User).filter(or_(db.User.is_admin, db.User.is_org)).options(
subqueryload(db.User.roles).joinedload(db.UserRole.place)
)
filter = OrgsFilterForm()
filter.validate_on_submit()
filter = OrgsFilterForm(formdata=request.args)
if request.args:
filter.validate()
filter.prepare_role_filter()
if filter.f_search_name:
......
......@@ -7,8 +7,7 @@
{% endif %}
<div class="form-frame">
<form action="" method="POST" role="form">
{{ filter.csrf_token }}
<form action="" method="GET" role="form">
{{ filter.is_role_filter }}
<div class="row">
<div class='col-sm-2'><strong>Filtr organizátorů</strong></div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment