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