It's my understanding that primary keys get created when an object is saved. I also presume that any relationships defined via manytomany would only be "available" after an object has been saved. Is this true?
The reason I'm asking is that I'm trying to do some validation work before saving and it would be helpful to look at the relationships before saving but I can't seem to do it. I tried putting super(Item,self).save() first, then looking for relationships but it's not working as I expected. I think I would need to "reload" my object to have visibility to the new relationships. I think I have two options: - After saving, get another copy of the object and verify what I need, make changes and resave. - Issue some sort of "reload" command to make sure my object is up to date with what is currently in the database. Has anyone dealt with this before? Am I making this harder than expected? Thanks, Chris --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---