diff --git a/src/aurora/core/admin/project.py b/src/aurora/core/admin/project.py index 5d3fdb46..ca836d6b 100644 --- a/src/aurora/core/admin/project.py +++ b/src/aurora/core/admin/project.py @@ -4,6 +4,7 @@ from django.core.cache import caches from adminfilters.mixin import AdminAutoCompleteSearchMixin +from django.db.models.functions import Collate from mptt.admin import MPTTModelAdmin from smart_admin.mixins import LinkedObjectsMixin @@ -27,7 +28,9 @@ class ProjectAdmin(SyncMixin, AdminAutoCompleteSearchMixin, LinkedObjectsMixin, autocomplete_fields = "parent, " def get_queryset(self, request): - return super().get_queryset(request).select_related("organization") + return super().get_queryset(request).annotate( + name_deterministic=Collate("name", "und-x-icu"), + ).select_related("organization") # # def get_search_results(self, request, queryset, search_term):