fix: Counter.edit_groups

This commit is contained in:
imperosol
2025-09-13 11:39:53 +02:00
parent b767079c5a
commit 25cd877160
3 changed files with 2 additions and 14 deletions

View File

@@ -535,13 +535,6 @@ class Counter(models.Model):
def __str__(self):
return self.name
def __getattribute__(self, name: str):
if name == "edit_groups":
return Group.objects.filter(
name=self.club.unix_name + settings.SITH_BOARD_SUFFIX
).all()
return object.__getattribute__(self, name)
def get_absolute_url(self) -> str:
if self.type == "EBOUTIC":
return reverse("eboutic:main")