HTMXify club members page

This commit is contained in:
imperosol
2025-09-13 13:54:19 +02:00
parent 984709f837
commit aaa3e39e88
9 changed files with 255 additions and 252 deletions

View File

@@ -201,10 +201,6 @@ class Club(models.Model):
"""Method to see if that object can be edited by the given user."""
return self.has_rights_in_club(user)
def can_be_viewed_by(self, user: User) -> bool:
"""Method to see if that object can be seen by the given user."""
return user.was_subscribed
def get_membership_for(self, user: User) -> Membership | None:
"""Return the current membership the given user.