Using the discriminator_on_association.py example, if I create a
Customer instance without specifying the addresses attribute, the for-
loop at the end will throw exception:

AttributeError: 'NoneType' object has no attribute 'addresses'

It works if I specify "addresses=[]", but that sounds like too much
work :P Is there a workaround for this? Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to