Bug #80915
api: erreur lors du parcours de la liste des utilisateurs dans l'ordre inverse
Status:
Nouveau
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
05 September 2023
Due date:
% Done:
0%
Estimated time:
Patch proposed:
No
Planning:
No
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/113188/
AttributeError: 'Unaccent' object has no attribute 'startswith' (11 additional frame(s) were not displayed) ... File "rest_framework/generics.py", line 171, in paginate_queryset return self.paginator.paginate_queryset(queryset, self.request, view=self) File "rest_framework/pagination.py", line 618, in paginate_queryset queryset = queryset.order_by(*_reverse_ordering(self.ordering)) File "rest_framework/pagination.py", line 123, in _reverse_ordering return tuple([invert(item) for item in ordering_tuple]) File "rest_framework/pagination.py", line 123, in <listcomp> return tuple([invert(item) for item in ordering_tuple]) File "rest_framework/pagination.py", line 121, in invert return x[1:] if x.startswith('-') else '-' + x