Skip to content

Commit

Permalink
Merge pull request #486 from appsembler/ajs-general-courses-ordering-…
Browse files Browse the repository at this point in the history
…fields

Update general courses ordering_fields attribute to allow ordering by start date
  • Loading branch information
jfaMan authored Nov 17, 2023
2 parents 03c4d4b + 2e6b642 commit 30fc4ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion figures/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class GeneralCourseDataViewSet(CourseOverviewViewSet):
pagination_class = FiguresKiloPagination
filter_backends = (SearchFilter, DjangoFilterBackend, OrderingFilter)
search_fields = ['display_name', 'id']
ordering_fields = ['display_name', 'self_paced', 'date_joined']
ordering_fields = ['display_name', 'self_paced', 'start_date']


class CourseDetailsViewSet(CommonAuthMixin, viewsets.ReadOnlyModelViewSet):
Expand Down

0 comments on commit 30fc4ec

Please sign in to comment.