Merge branch 'master' of github.com:jamesturk/fowl

This commit is contained in:
Erin Braswell 2012-05-29 01:08:27 -04:00
commit 81911ace83
3 changed files with 5690 additions and 2 deletions

5689
backup-0528.json Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -281,7 +281,7 @@ class League(models.Model):
class Team(models.Model): class Team(models.Model):
name = models.CharField(max_length=100) name = models.CharField(max_length=100)
color = models.CharField(max_length=50) color = models.CharField(max_length=50)
login = models.OneToOneField(User, related_name='team') login = models.ForeignKey(User, related_name='teams')
league = models.ForeignKey(League, related_name='teams') league = models.ForeignKey(League, related_name='teams')
stars = models.ManyToManyField(Star, related_name='teams') stars = models.ManyToManyField(Star, related_name='teams')