summaryrefslogtreecommitdiffstats
path: root/forms.py
diff options
context:
space:
mode:
authorMarian Sigler <m@qjym.de>2012-10-06 16:40:24 +0200
committerMarian Sigler <m@qjym.de>2012-10-06 16:40:35 +0200
commitb52de923cbb794b8dbc4d94c60c38088e26d95b5 (patch)
treeee2abbf99c8ba4815a1fefcde51f267a3649b81c /forms.py
parentf1683aaf4b02721c26e68723fcbaebb536aac26a (diff)
downloadweb-b52de923cbb794b8dbc4d94c60c38088e26d95b5.tar.gz
web-b52de923cbb794b8dbc4d94c60c38088e26d95b5.tar.bz2
web-b52de923cbb794b8dbc4d94c60c38088e26d95b5.zip
Make external urls always with https
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,