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 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 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 argument to the
> definition for 'result'.
> tables.team: Reverse query name for m2m field 'pupils' clashes with
> field 'Pupil.team'. Add a related_name argument to the definition for
> 'pupils'.
> tables.result: Reverse query name for m2m field 'pupil' clashes with
> m2m field 'Pupil.result'. Add a related_name argument to the
> definition for 'pupil'.
> tables.table: "table": "choices" should be a sequence of two-tuples.
> tables.table: "table": "choices" should be a sequence of two-tuples.
> tables.table: "table": "choices" should be a sequence of two-tuples.
>
> Adam
> --
> You back your data up on the same planet?
> http://www.monkeez.org
> PGP key: 0x7111B833
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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