mirror of
https://github.com/ae-utbm/sith.git
synced 2026-06-21 07:22:40 +00:00
ajout requette api nouveau et ancien membre de club
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from datetime import datetime
|
||||
from typing import Annotated
|
||||
|
||||
from django.db.models import Q
|
||||
@@ -79,3 +80,8 @@ class UserMembershipSchema(ModelSchema):
|
||||
|
||||
club: SimpleClubSchema
|
||||
role: ClubRoleSchema
|
||||
user: SimpleUserSchema
|
||||
|
||||
|
||||
class MembershipFilterSchema(FilterSchema):
|
||||
since_date: Annotated[datetime, FilterLookup("date__lte")] = None
|
||||
|
||||
Reference in New Issue
Block a user