Skip to content
Snippets Groups Projects
Commit 0048024d authored by Martin Mareš's avatar Martin Mareš
Browse files

Při ručním přidávání účastníka do školního kola předvyplníme školu

Closes #331.
parent 8f80f9e1
Branches
No related tags found
No related merge requests found
...@@ -1863,6 +1863,10 @@ def org_contest_add_user(ct_id: int, site_id: Optional[int] = None): ...@@ -1863,6 +1863,10 @@ def org_contest_add_user(ct_id: int, site_id: Optional[int] = None):
flash("Žádná změna. Uživatel už byl přihlášen.", "info") flash("Žádná změna. Uživatel už byl přihlášen.", "info")
return redirect(ctx.url_for('org_generic_list')) return redirect(ctx.url_for('org_generic_list'))
if request.method == 'GET':
if contest.place.type == db.PlaceType.school:
form.school.data = contest.place.get_code()
return render_template( return render_template(
'org_contest_add_user.html', 'org_contest_add_user.html',
ctx=ctx, ctx=ctx,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment