Adds sorting by type on the schedules list. Also adds functionality for bulk_data command to create schedules

This commit is contained in:
Alex Corey
2022-05-05 16:41:07 -04:00
parent e3fe9010b7
commit 05eba350b7
4 changed files with 31 additions and 2 deletions

View File

@@ -537,6 +537,7 @@ class ScheduleList(ListCreateAPIView):
name = _("Schedules")
model = models.Schedule
serializer_class = serializers.ScheduleSerializer
ordering = ('id',)
class ScheduleDetail(RetrieveUpdateDestroyAPIView):