mirror of
https://github.com/bspeice/itcs4180
synced 2024-12-04 13:18:16 -05:00
Add the riddle_image_url to the serializer
This commit is contained in:
parent
782a31eb4d
commit
6d088e24d3
@ -5,7 +5,8 @@ from models import Location
|
|||||||
class LocationListSerializer(ModelSerializer):
|
class LocationListSerializer(ModelSerializer):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Location
|
model = Location
|
||||||
fields = ('id', 'name', 'riddle', 'location_long', 'location_lat')
|
fields = ('id', 'name', 'riddle', 'location_long', 'location_lat',
|
||||||
|
'riddle_image_url')
|
||||||
|
|
||||||
class LocationResultSerializer(ModelSerializer):
|
class LocationResultSerializer(ModelSerializer):
|
||||||
class Meta:
|
class Meta:
|
||||||
|
Loading…
Reference in New Issue
Block a user