From e2f6671ad0fc9f987306873f715cd4bff45ba588 Mon Sep 17 00:00:00 2001 From: imperosol Date: Mon, 9 Mar 2026 18:59:41 +0100 Subject: [PATCH] apply review comments --- club/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/club/api.py b/club/api.py index e9019064..3ed425bf 100644 --- a/club/api.py +++ b/club/api.py @@ -55,7 +55,8 @@ class UserClubController(ControllerBase): permissions=[CanView], url_name="fetch_user_clubs", ) - def search_club(self, user_id: int): + def fetch_user_clubs(self, user_id: int): + """Get all the active memberships of the given user.""" user = self.get_object_or_exception(User, id=user_id) return ( Membership.objects.ongoing()