mirror of
https://github.com/ae-utbm/sith.git
synced 2025-11-10 05:53:06 +00:00
improve tests
This commit is contained in:
@@ -21,12 +21,8 @@ class ClubController(ControllerBase):
|
||||
url_name="search_club",
|
||||
)
|
||||
@paginate(PageNumberPaginationExtra, page_size=50)
|
||||
def search_club(
|
||||
self,
|
||||
filters: Query[ClubSearchFilterSchema],
|
||||
):
|
||||
clubs = Club.objects.all()
|
||||
return filters.filter(clubs)
|
||||
def search_club(self, filters: Query[ClubSearchFilterSchema]):
|
||||
return filters.filter(Club.objects.all())
|
||||
|
||||
@route.get(
|
||||
"/{int:club_id}",
|
||||
|
||||
Reference in New Issue
Block a user