suppression des accents pour le tri
This commit is contained in:
parent
8b95865a14
commit
dd117fdebb
@ -48,6 +48,7 @@ INSTALLED_APPS = [
|
|||||||
'ckeditor',
|
'ckeditor',
|
||||||
'recurrence',
|
'recurrence',
|
||||||
'location_field.apps.DefaultConfig',
|
'location_field.apps.DefaultConfig',
|
||||||
|
'django.contrib.postgres',
|
||||||
]
|
]
|
||||||
|
|
||||||
MIDDLEWARE = [
|
MIDDLEWARE = [
|
||||||
|
@ -177,7 +177,7 @@ def mentions_legales(request):
|
|||||||
return render(request, 'agenda_culturel/page-single.html', context)
|
return render(request, 'agenda_culturel/page-single.html', context)
|
||||||
|
|
||||||
def about(request):
|
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 }
|
context = { "title": "À propos", "static_content": "about", "url_path": reverse_lazy("about"), "rimports": rimports }
|
||||||
return render(request, 'agenda_culturel/page-rimports-list.html', context)
|
return render(request, 'agenda_culturel/page-rimports-list.html', context)
|
||||||
|
|
||||||
@ -1090,7 +1090,7 @@ class ModerationAnswerDeleteView(PermissionRequiredMixin, DeleteView):
|
|||||||
class PlaceListView(ListView):
|
class PlaceListView(ListView):
|
||||||
model = Place
|
model = Place
|
||||||
paginate_by = 10
|
paginate_by = 10
|
||||||
ordering = ['name']
|
ordering = ['name__unaccent']
|
||||||
|
|
||||||
|
|
||||||
class PlaceDetailView(DetailView):
|
class PlaceDetailView(DetailView):
|
||||||
|
Loading…
Reference in New Issue
Block a user