Skip to content
Snippets Groups Projects

WIP: Zárodek uživatelské části webu a submitování

Closed Martin Mareš requested to merge devel into master
Compare and Show latest version
2 files
+ 10
17
Compare changes
  • Side-by-side
  • Inline

Files

+ 1
1
@@ -153,7 +153,7 @@ def org_orgs():
class FormAddRole(FlaskForm):
role = wtforms.SelectField('Role', choices=[(name.name, role.name) for (name, role) in mo.rights.roles_by_type.items()])
role = wtforms.SelectField('Role', choices=db.RoleType.choices(), coerce=db.RoleType.coerce)
place_code = wtforms.StringField('Oblast')
year = wtforms.IntegerField('Ročník', validators=[validators.Optional()])
category = wtforms.StringField("Kategorie", validators=[validators.Length(max=2)], filters=[lambda x: x or None])
Loading