url relative à l'host (pour fonctionner derrière les redirections)

This commit is contained in:
Jean-Marie Favreau 2024-01-17 10:02:21 +01:00
parent 31b7881c90
commit d71f49e297

View File

@ -92,7 +92,7 @@ class EventFilter(django_filters.FilterSet):
return ""
def get_url_without_filters(self):
return self.request.build_absolute_uri().split("?")[0]
return self.request.get_full_path().split("?")[0]
def get_categories(self):
return self.form.cleaned_data["category"]