Commit 247b6c4d authored by Julian Rother's avatar Julian Rother
Browse files

Change syntax in bf3ebb1c to support older python versions

parent 2e091a2c
......@@ -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.")])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment