mirror of
https://github.com/nprasad2077/nbaStats.git
synced 2026-11-04 17:19:54 +00:00
9 lines
266 B
Python
9 lines
266 B
Python
# Serializers are defined that will convert model instances to JSON
|
|
from rest_framework import serializers
|
|
from .models import PlayerData
|
|
|
|
class PlayerDataSerializer(serializers.ModelSerializer):
|
|
class Meta:
|
|
model = PlayerData
|
|
fields = '__all__'
|