mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-15 02:33:22 +00:00
10 lines
162 B
Python
10 lines
162 B
Python
|
from ninja import ModelSchema
|
||
|
|
||
|
from club.models import Club
|
||
|
|
||
|
|
||
|
class ClubSchema(ModelSchema):
|
||
|
class Meta:
|
||
|
model = Club
|
||
|
fields = ["id", "name"]
|