Add related names to DuckCompetence fields
This commit is contained in:
parent
8f9a126924
commit
6aa0e50193
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user