Skip to content

Instantly share code, notes, and snippets.

@dwillis
Created August 5, 2012 03:21
Show Gist options
  • Select an option

  • Save dwillis/3261391 to your computer and use it in GitHub Desktop.

Select an option

Save dwillis/3261391 to your computer and use it in GitHub Desktop.
class Game(models.Model):
season = models.IntegerField()
team1 = models.ForeignKey(CollegeYear, related_name='team1')
coach1 = models.ForeignKey(Coach, null=True, related_name='first_coach')
team2 = models.ForeignKey(CollegeYear, related_name='team2')
coach2 = models.ForeignKey(Coach, null=True, related_name='second_coach')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment