mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 06:03:20 +00:00
16 lines
306 B
Python
16 lines
306 B
Python
from ninja import ModelSchema
|
|
|
|
from accounting.models import ClubAccount, Company
|
|
|
|
|
|
class ClubAccountSchema(ModelSchema):
|
|
class Meta:
|
|
model = ClubAccount
|
|
fields = ["id", "name"]
|
|
|
|
|
|
class CompanySchema(ModelSchema):
|
|
class Meta:
|
|
model = Company
|
|
fields = ["id", "name"]
|