korjauksia

This commit is contained in:
Elias
2018-03-01 20:53:31 +02:00
parent 780e2d6acb
commit 7bc277a978
5 changed files with 85 additions and 31 deletions
+7 -2
View File
@@ -237,7 +237,12 @@ class KaehmyForm(MessageParent):
class Committee(models.Model):
""" Committee model, has many Roles found under variable roles """
"""
Committee model
Has many Roles found under variable roles
"""
name = models.CharField(max_length=255)
@@ -258,7 +263,7 @@ class Role(PresetRole):
start_date = models.DateField(_('Start date'))
end_date = models.DateField(_('End date'))
official = models.ForeignKey('Official', related_name='roles')
committee = models.ForeignKey('Committee', related_name='roles', on_delete=models.SET_NULL, blank=True)
committee = models.ForeignKey('Committee', related_name='roles', on_delete=models.SET_NULL, null=True)
class Official(User):
"""Model representing a guild official."""