Add related names to DuckCompetence fields

This commit is contained in:
Gergely Polonkai 2015-10-19 17:03:17 +02:00
parent 8f9a126924
commit 6aa0e50193

View File

@ -121,8 +121,8 @@ class DuckNameVote(models.Model):
class DuckCompetence(models.Model): class DuckCompetence(models.Model):
"""Duck competence governor table""" """Duck competence governor table"""
duck = models.ForeignKey(Duck) duck = models.ForeignKey(Duck, related_name='competences')
comp = models.ForeignKey(Competence) comp = models.ForeignKey(Competence, related_name='ducks')
up_minutes = models.IntegerField(default=0) up_minutes = models.IntegerField(default=0)
down_minutes = models.IntegerField(default=0) down_minutes = models.IntegerField(default=0)