Compare commits
4 Commits
95885123a9
...
80bdb361be
Author | SHA1 | Date | |
---|---|---|---|
80bdb361be | |||
b9c9310f21 | |||
a0823814c5 | |||
fb67e42078 |
@ -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…
Reference in New Issue
Block a user