mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-22 23:17:09 +00:00
add endpoint for get all achievements
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
from ninja import ModelSchema, Schema
|
||||||
|
|
||||||
|
from apps.achievement.models import Achievement
|
||||||
|
|
||||||
|
|
||||||
|
class AchievementSchema(ModelSchema):
|
||||||
|
class Meta:
|
||||||
|
model = Achievement
|
||||||
|
fields = ("id", "name", "description", "icon",)
|
||||||
Reference in New Issue
Block a user