mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-30 14:19:35 +00:00
Add GET /api/club/{club_id} to fetch details about a club
This commit is contained in:
1 parent
1d55a5c2da
commit
44e1902693
6 files changed
+55
-11
No files matched your search
+2
-2
@@ -5,7 +5,7 @@ from django.urls import reverse
|
||||
from ninja import Field, FilterSchema, ModelSchema, Schema
|
||||
from pydantic import model_validator
|
||||
|
||||
from club.schemas import ClubSchema
|
||||
from club.schemas import SimpleClubSchema
|
||||
from core.schemas import GroupSchema, SimpleUserSchema
|
||||
from counter.models import Counter, Product, ProductType
|
||||
|
||||
@@ -82,7 +82,7 @@ class ProductSchema(ModelSchema):
|
||||
]
|
||||
|
||||
buying_groups: list[GroupSchema]
|
||||
club: ClubSchema
|
||||
club: SimpleClubSchema
|
||||
product_type: SimpleProductTypeSchema | None
|
||||
url: str
|
||||
|
||||
|
||||
Reference in new issue
Block a user