Remove webapp BaseRole

This commit is contained in:
Aarni Halinen
2022-07-26 20:53:25 +03:00
parent 9678b663a0
commit 93e122b8a8
5 changed files with 35 additions and 38 deletions
-12
View File
@@ -222,18 +222,6 @@ def email_on_signup(sender, instance, created, **kwargs):
)
class BaseRole(models.Model):
"""Base model for occupations/roles."""
id = models.AutoField(primary_key=True)
name = models.CharField(_("Name"), max_length=255)
is_board = models.BooleanField(_("Board member"))
def __str__(self):
n = self.name.capitalize()
return "{} ({})".format(n, _("board member")) if self.is_board else n
class JobAd(models.Model):
"""Job advertisements shown on Corporate relations page"""