From 520992c4ab012ee26f4f302b7cc15331e61746ba Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Fri, 19 Jul 2013 16:39:57 +0200 Subject: Break out the thread browsing functionality and create a widget for it Also, move the javascript to a shared javascript file --- pgcommitfest/commitfest/widgets.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 pgcommitfest/commitfest/widgets.py (limited to 'pgcommitfest/commitfest/widgets.py') diff --git a/pgcommitfest/commitfest/widgets.py b/pgcommitfest/commitfest/widgets.py new file mode 100644 index 0000000..623643f --- /dev/null +++ b/pgcommitfest/commitfest/widgets.py @@ -0,0 +1,8 @@ +from django.forms import TextInput +from django.utils.safestring import mark_safe + +class ThreadPickWidget(TextInput): + def render(self, name, value, attrs=None): + html = super(ThreadPickWidget, self).render(name, value, attrs) + html = html + ' ' % name + return mark_safe(html) -- cgit v1.2.3