summaryrefslogtreecommitdiff
path: root/main/utils.py
diff options
context:
space:
mode:
authorDusty Phillips <buchuki@gmail.com>2008-10-07 14:53:56 -0400
committerDusty Phillips <buchuki@gmail.com>2008-10-07 14:53:56 -0400
commit92ae5b3f0bfb6ad90fa984dd220172e6616a5e86 (patch)
tree9c4ff53adf9d8b0c16c94cedf0915ac99bbb0d46 /main/utils.py
parent495338b231ad03043d117ce30a2bc88862614295 (diff)
need better than ids for options
Diffstat (limited to 'main/utils.py')
-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: