On Oct 25, 4:09 pm, AdamC <[EMAIL PROTECTED]> wrote:
> Thanks Manuel - even if I take that out, I'm still getting the error:
>
> Error: One or more models did not validate:
> tables.pupil: Reverse query name for m2m field 'result' clashes with
> m2m field 'Result.pupil'. Add a related_name argumen
On Sat, Oct 25, 2008 at 11:36 AM, Florencio Cano
<[EMAIL PROTECTED]>wrote:
>
> You are saying that a Pupil is a Team and a Team is a Pupil with that
> OneToOneField. In the Team you are saying one Pupil belongs to many
> Teams and a Team have many Pupils that seems ok but the OneToOneField
> seems
You are saying that a Pupil is a Team and a Team is a Pupil with that
OneToOneField. In the Team you are saying one Pupil belongs to many
Teams and a Team have many Pupils that seems ok but the OneToOneField
seems wrong.
2008/10/25 AdamC <[EMAIL PROTECTED]>:
>
> 2008/10/25 Manuel Held <[EMAIL PRO
2008/10/25 Manuel Held <[EMAIL PROTECTED]>:
>
>
> Hi Adam,
>
> use:
>
> table = models.OneToOneField(Table)
>
> instead of
>
> table = models.OneToOneField('Table')
>
> You don't have to use ' there.
>
> Happy Coding
>
> Manuel
>
Thanks Manuel - even if I take that out, I'm still getting the err
AdamC schrieb:
> I'm really at sea here with my models. I used to have an application
> in python with cgi, which would allow children to solve simple
> multiplication problems and earn points for their team, which is then
> displayed in a league table.
>
> I thought it would be fun to port this
5 matches
Mail list logo