Commit 51cce9cb authored by Nicholas Anderson's avatar Nicholas Anderson

Whoops, facility id wasn't being sent

parent 15ac169b
......@@ -15,7 +15,7 @@ class ScheduleSerializer(serializers.ModelSerializer):
open_times = OpenTimeSerializer(many=True, read_only=True)
class Meta:
model = Schedule
fields = '__all__'
fields = ( 'id', 'open_times', 'last_modified', 'name', 'valid_start', 'valid_end' )
class FacilitySerializer(serializers.HyperlinkedModelSerializer):
category = CategorySerializer(many=False, read_only=True)
......@@ -24,5 +24,5 @@ class FacilitySerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Facility
fields = '__all__'
fields = ( 'id', 'category', 'main_schedule', 'special_schedules', 'location', 'last_modified', 'name' )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment