Oh man, I'm really grateful for the help. And for writing Django in the
first place.
Here's the fun part of my problem! It works fine in the ./manage.py
shell. My view was loading the agency with an id of 141, so for
consistency, we'll use that same object.
>>> from commund.financial_database.models import *
>>> a = Agency.objects.get(id=141)
>>> a
<Agency: Potomac Insurance>
>>> a.agent_set.all()
[<Agent: Unknown, Agent - Potomac Insurance (Tax ID Unconfirmed)>]
>>> WHY ARE YOU WORKING!? THE TEMPLATE LIES!
File "<console>", line 1
WHY ARE YOU WORKING!? THE TEMPLATE LIES!
^
SyntaxError: invalid syntax
Ehem.
For clarity, the "Uknown, Agent" isn't an error, every agency has an
agent object with that specific name as a catch-all; also, part of
agent.str() is that it returns the agency name and if that agency has a
confirmed Tax number beside the agent's name.
Thanks so much for the help! I'm really stuck.
-Jason L.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---