I've got the following model:
http://paste.e-scribe.com/1666/
And I'm trying to run the following in the Event object's
object_detail generic view template:
{% for slot in object.signupslot_set.all %}
But it bombs with a "iteration over non-sequence" error every time.
What gives? In the shell, it's a list:
>>> from pical.apps.calendar.models import Event, SignupSlot
>>> event = Event.objects.get(id=1)
>>> event
<Event: Sample Event>
>>> slots = event.signupslot_set.all()
>>> slots
[<SignupSlot: Setup>]
But in the template, it apparently is not.
Any help would be really appreciated.
-Tyson
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---