1
0
mirror of https://github.com/bspeice/itcs4180 synced 2024-11-16 04:18:13 -05:00
itcs4180/UNCCScavenger-Server/UNCCScavenger_Server/scavenger/serializers.py

14 lines
330 B
Python
Raw Normal View History

from rest_framework.serializers import ModelSerializer
from models import Location
class LocationListSerializer(ModelSerializer):
class Meta:
model = Location
fields = ('id', 'name', 'riddle', 'location')
class LocationResultSerializer(ModelSerializer):
class Meta:
model = Location
fields = ('id', 'name', 'result')