Please copy and paste here the Model definitions for Recept,
ingredient and 'verhouding' (I'm assuming this is explicitly defined,
given the non-standard name)

On Mar 10, 11:07 am, Marout <hainje...@gmail.com> wrote:
> Hi there,
>
> I'm relatively new tio django and I can't get to grips with my many-to-many
> relations.
>
> Idea:
>
> I have a cooking Recept which has a many-to-many relation to it's
> ingredients.
> Recept has:
> -ID
> -Name
> -preparation text
> -resulting amount (numeric)
> -resulting amount (unit of measurement => relation to measurement table)
>
> The many-to-many relation is defined in the table 'verhouding'.
>
> This verhouding table contains keys for recept and ingredient.
> Also it contains additional columns for
> -amount (numeric)
> -amount (unit of measurement => relation to a measurement table)
> -following order of addition
>
> I try to create 2 web pages:
> -first you enter a recept name. Django checks if it exists.
> The nexpt page is either empty (recept was non-existent) or has the data
> from the requested recept, ready for modification.
>
> How do I accomplish this?
> because every time I try, the pk of recept seems lost which causes django to
> fail.
>
> Regards,
> marout

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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