Sorry to be a pain in the ass, but I did as you stated with that and
now i get a different error:

$ python2.4 manage.py syncdb
Error: Couldn't install apps, because there were errors in one or more
models:
htafc.teams: name 'TRUE' is not defined

What is this referring too please?


On Feb 26, 12:33 am, "DuncanM" <[EMAIL PROTECTED]> wrote:
> Thank you Honza and Chase, you have both been extremely helpful.
>
> Many thanks,
> Duncan
>
> On Feb 26, 12:09 am, "Chase" <[EMAIL PROTECTED]> wrote:
>
> > More like:>   goalkeeper = models.ForeignKey(Player, 
> > related_name="goalkeeper_for")
> > >   leftback = models.ForeignKey(Player, related_name="leftback_for")
>
> > etc.
>
> > What ForeignKey does is creates a reference in the object related
> > (Player) so that you could also analyze the relationship in reverse
> > (i.e., say Player.goalkeeper_for to find out which games given Player
> > was goalkeeper for).  By default, the related_name is always
> > "result_set". Anytime you have more than one ForeignKey referencing
> > the same model from a given model, you must give each a unique
> > related_name so they don't clash.
>
> > Best regards,
> > Chase


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