mirror of
https://github.com/bspeice/itcs4180
synced 2024-11-14 11:28:14 -05:00
15 lines
376 B
Python
15 lines
376 B
Python
from rest_framework.serializers import ModelSerializer
|
|
|
|
from models import Location
|
|
|
|
class LocationListSerializer(ModelSerializer):
|
|
class Meta:
|
|
model = Location
|
|
fields = ('id', 'name', 'riddle', 'location_long', 'location_lat',
|
|
'riddle_image_url')
|
|
|
|
class LocationResultSerializer(ModelSerializer):
|
|
class Meta:
|
|
model = Location
|
|
fields = ('id', 'name', 'result')
|