Skip to content
Snippets Groups Projects
Commit 5358be31 authored by Branson Stephens's avatar Branson Stephens
Browse files

changed slots filter to return slot objects rather than dictionary.

parent a996e829
No related branches found
No related tags found
No related merge requests found
......@@ -10,10 +10,7 @@ def slot(event,pattern):
if event is None:
return None
try:
# This returns a list of dictionary objects, like
# [{'event': event, 'name': 'skymap', 'value':'skymap.png'}, ... ]
# XXX doesn't the template need the full path?
return Slot.objects.filter(event=event).filter(name__regex=pattern).values()
return Slot.objects.filter(event=event).filter(name__regex=pattern)
except:
# Either there is no such slot or something went wrong.
# In either case, we want the template to just ignore it.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment