Greetings,

  I'm hoping for some advice here. I'm using the admin that captures  
some information about a human, including their address (represented  
as an FK to an Address model thing). Additionally it has a formset  
(StackedInline) that displays N other forms that capture information  
about other humans. All of these humans live at the same address.  
Hopefully that make sense.

Assuming the "main" form is valid I want to get the value of the FK to  
the Address from the "main" form and use it when processing the forms  
in the formset.

I can see several ways of doing this but I'm not sure what's the best.  
It appears that the easiest is to override save_form() and do stuff  
with the return value there. Is that reasonable or is there a better  
way?

Apologies in advance if this isn't clear.

---Rick



--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to