Sith/club/schemas.py

10 lines
162 B
Python
Raw Permalink Normal View History

from ninja import ModelSchema
from club.models import Club
class ClubSchema(ModelSchema):
class Meta:
model = Club
fields = ["id", "name"]