X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/deac5b0493ee766f3958f363eb92f5265af63961..87dc39857d78078064df83de6e32d78b76863746:/forum/settings/forms.py?ds=inline diff --git a/forum/settings/forms.py b/forum/settings/forms.py index 0c12301..3e3cc5a 100644 --- a/forum/settings/forms.py +++ b/forum/settings/forms.py @@ -4,6 +4,7 @@ from django import forms from forum.settings.base import Setting from django.utils.translation import ugettext as _ from django.core.files.storage import FileSystemStorage +from django.core.urlresolvers import reverse class DummySetting: pass @@ -120,7 +121,20 @@ class CommaStringListWidget(forms.Textarea): else: return ', '.join(data[name]) +class TestEmailSettingsWidget(forms.TextInput): + def render(self, name, value, attrs=None): + if not value: + value = '' - - - + return """ +
+ Test + +
+ +
+
+
+ """ % reverse("test_email_settings") \ No newline at end of file