Improve ajax-select style

This commit is contained in:
2024-10-20 17:37:51 +02:00
parent be5ce414ba
commit 45441c351d
3 changed files with 19 additions and 23 deletions

View File

@ -39,6 +39,7 @@ class AutoCompleteSelectMixin:
def get_context(self, name, value, attrs):
context = super().get_context(name, value, attrs)
context["widget"]["attrs"]["autocomplete"] = "off"
context["component"] = self.component_name
context["statics"] = {
"js": [staticfiles_storage.url(file) for file in self.js],