This commit is contained in:
Aarni Halinen
2022-01-13 23:07:11 +02:00
parent 7cb03d40d4
commit 79cc0bcd55
5 changed files with 78 additions and 35 deletions
@@ -6,11 +6,11 @@ from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('kaehmy', '0005_auto_20190312_1458'),
("kaehmy", "0005_auto_20190312_1458"),
]
operations = [
migrations.DeleteModel(
name='TelegramChannel',
name="TelegramChannel",
),
]
+3 -1
View File
@@ -159,4 +159,6 @@ class Application(CommentParent):
return ", ".join(combined) if len(combined) > 0 else ""
def has_any_board_role(self):
return self.preset_roles.filter(is_board=True).exists() or self.custom_roles.filter(is_board=True)
return self.preset_roles.filter(
is_board=True
).exists() or self.custom_roles.filter(is_board=True)