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
+17
View File
@@ -0,0 +1,17 @@
# Generated by Django 3.2.14 on 2022-08-03 20:19
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('kaehmy', '0011_delete_kaehmybaserole'),
('webapp', '0081_auto_20220801_2217'),
]
operations = [
migrations.DeleteModel(
name='BaseRole',
),
]
-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"""