summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/utils.py b/main/utils.py
index eb0cb2a3..f31689f8 100644
--- a/main/utils.py
+++ b/main/utils.py
@@ -15,5 +15,8 @@ def render_response(req, *args, **kwargs):
kwargs['context_instance'] = RequestContext(req)
return render_to_response(*args, **kwargs)
+#utility to make a pair of django choices
+make_choice = lambda l: [(str(m), str(m)) for m in l]
+
# vim: set ts=4 sw=4 et: