Skip to content
Snippets Groups Projects
Commit 247b6c4d authored by Julian Rother's avatar Julian Rother
Browse files

Change syntax in bf3ebb1c to support older python versions

parent 2e091a2c
Branches
No related tags found
No related merge requests found
......@@ -101,7 +101,8 @@ class IPNetworkField(Field):
class FocusedStringField(StringField):
def __call__(self, **kwargs):
return super().__call__(**kwargs, autofocus=True)
kwargs['autofocus'] = True
return super().__call__(**kwargs)
class LoginForm(FlaskForm):
username = FocusedStringField("Benutzer", validators=[InputRequired("Bitte gib deinen Benutzernamen ein.")])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment