korjauksia
This commit is contained in:
+7
-2
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user