summaryrefslogtreecommitdiffstats
path: root/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'forms.py')
-rw-r--r--forms.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/forms.py b/forms.py
index bbdfabe..b14e612 100644
--- a/forms.py
+++ b/forms.py
@@ -1,10 +1,11 @@
# -*- coding: utf-8 -*-
from account import SERVICES, NoSuchUserError
-from flask import g, current_app, session, url_for, Markup
+from flask import g, current_app, session, Markup
from flask.ext.wtf import Form, validators, TextField, PasswordField,\
ValidationError, BooleanField
from functools import partial
-from utils import _username_re, _username_exclude_re, decrypt_password, NotRegexp
+from utils import _username_re, _username_exclude_re, decrypt_password,\
+ NotRegexp, url_for
username = partial(TextField, 'Benutzername', [validators.Regexp(_username_re,