mirror of
https://github.com/TurTaskProject/TurTaskWeb.git
synced 2025-12-19 14:04:07 +01:00
7 lines
289 B
Python
7 lines
289 B
Python
from rest_framework import serializers
|
|
from .models import UserStats
|
|
|
|
class UserStatsSerializer(serializers.ModelSerializer):
|
|
class Meta:
|
|
model = UserStats
|
|
fields = ['health', 'gold', 'experience', 'strength', 'intelligence', 'endurance', 'perception', 'luck', 'level'] |