mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-23 17:57:10 +00:00
15 lines
277 B
Python
15 lines
277 B
Python
from ninja import ModelSchema
|
|
|
|
from apps.achievement.models import Achievement
|
|
|
|
|
|
class AchievementSchema(ModelSchema):
|
|
class Meta:
|
|
model = Achievement
|
|
fields = (
|
|
"id",
|
|
"name",
|
|
"description",
|
|
"icon",
|
|
)
|