I had a question a while ago about updating multiple models with one
form submission but got no responses so I am going to try and reword it
and hopefully someone can help me.

I have two models, a recipe model and an ingredients model. The
ingredient model is simple and just looks like this:

class Ingredient(models.Model):
        recipe = models.ForeignKey(Recipe, num_in_admin=10)
        ingredient = models.CharField(maxlength=142, core=True)

I also have a model for the recipe which includes basically everything
else for the recipe. How can I create one form so it inserts into both
models? Using the examples online, I am able to create a form that
inserts into one model but I can't seem to figure out how to update
both of them. Any guidance would be appreciated. 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to