suppression des accents pour le tri
This commit is contained in:
		@@ -48,6 +48,7 @@ INSTALLED_APPS = [
 | 
			
		||||
    'ckeditor',
 | 
			
		||||
    'recurrence',
 | 
			
		||||
    'location_field.apps.DefaultConfig',
 | 
			
		||||
    'django.contrib.postgres',
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
MIDDLEWARE = [
 | 
			
		||||
 
 | 
			
		||||
@@ -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):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user