suppression des accents pour le tri

This commit is contained in:
Jean-Marie Favreau 2024-04-27 23:30:47 +02:00
parent 8b95865a14
commit dd117fdebb
2 changed files with 3 additions and 2 deletions

View File

@ -48,6 +48,7 @@ INSTALLED_APPS = [
'ckeditor',
'recurrence',
'location_field.apps.DefaultConfig',
'django.contrib.postgres',
]
MIDDLEWARE = [

View File

@ -177,7 +177,7 @@ def mentions_legales(request):
return render(request, 'agenda_culturel/page-single.html', context)
def about(request):
rimports = RecurrentImport.objects.order_by("name").all()
rimports = RecurrentImport.objects.order_by("name__unaccent").all()
context = { "title": "À propos", "static_content": "about", "url_path": reverse_lazy("about"), "rimports": rimports }
return render(request, 'agenda_culturel/page-rimports-list.html', context)
@ -1090,7 +1090,7 @@ class ModerationAnswerDeleteView(PermissionRequiredMixin, DeleteView):
class PlaceListView(ListView):
model = Place
paginate_by = 10
ordering = ['name']
ordering = ['name__unaccent']
class PlaceDetailView(DetailView):