django_4 #362

Merged
mpeltriaux merged 3 commits from django_4 into Docker_django_4 10 months ago

@ -32,3 +32,9 @@ class EcoAccountAutocomplete(Select2QuerySetView):
Q(title__icontains=self.q)
).distinct()
return qs
def get_result_label(self, result):
return str(result)
def get_selected_result_label(self, result):
return str(result)

@ -42,6 +42,10 @@ ALLOWED_HOSTS = [
"localhost",
]
CSRF_TRUSTED_ORIGINS = [
"http://localhost", # not only host but schema (http/s) as well!
]
# Authentication settings
LOGIN_URL = "/login/"

Loading…
Cancel
Save