mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-11-20 20:17:53 +00:00
add endpoint for get all achievements
This commit is contained in:
1 parent
710b40dfe1
commit
b631b09648
2 files changed
+9
No files matched your search
Whitespace-only changes.
@@ -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