Skip to content

Commit

Permalink
update ordering for InstitutionUserMetricsList
Browse files Browse the repository at this point in the history
  • Loading branch information
John Tordoff committed Aug 26, 2024
1 parent 4084e4d commit 4813281
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/institutions/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,8 @@ class InstitutionUserMetricsList(InstitutionImpactList):
serializer_class = InstitutionUserMetricsSerializer
renderer_classes = tuple(api_settings.DEFAULT_RENDERER_CLASSES) + (InstitutionUserMetricsCSVRenderer,)

ordering_fields = ('user_name', 'department')
ordering = ('user_name',)
ordering_fields = ('department', 'has_orcid')
ordering = ('department',)

def _format_search(self, search, default_kwargs=None):
results = search.execute()
Expand Down

0 comments on commit 4813281

Please sign in to comment.