summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauréline Guérin <zebuline@entrouvert.com>2020-10-16 12:57:20 (GMT)
committerLauréline Guérin <zebuline@entrouvert.com>2020-10-16 13:22:05 (GMT)
commit11869fb4b8c15fc81edeb3d80519c1bbf881d48b (patch)
tree0fc84db102baaad1066bc53ad4aeb77159a0483d
parent4fed275ba33b131c2155917a78f721475b32113d (diff)
downloadauthentic-11869fb4b8c15fc81edeb3d80519c1bbf881d48b.zip
authentic-11869fb4b8c15fc81edeb3d80519c1bbf881d48b.tar.gz
authentic-11869fb4b8c15fc81edeb3d80519c1bbf881d48b.tar.bz2
profile: fix address autocomplete JS loading (#47796)
-rw-r--r--src/authentic2/attribute_kinds.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/authentic2/attribute_kinds.py b/src/authentic2/attribute_kinds.py
index 0e7e946..7db3223 100644
--- a/src/authentic2/attribute_kinds.py
+++ b/src/authentic2/attribute_kinds.py
@@ -35,6 +35,7 @@ from django.db.models import query
from django.utils.functional import keep_lazy
+from gadjo.templatetags.gadjo import xstatic
from rest_framework import serializers
from rest_framework.fields import empty
@@ -117,6 +118,7 @@ class AddressAutocompleteInput(forms.Select):
class Media:
js = [
+ xstatic('jquery.js', 'jquery.min.js'),
settings.SELECT2_JS,
'authentic2/js/address_autocomplete.js',
]