Skip to content

Commit

Permalink
[Fixes #12921] Fix Layers admin interface raise error
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiagiupponi committed Feb 18, 2025
1 parent 267ad61 commit e54e26c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
3 changes: 0 additions & 3 deletions geonode/base/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,6 @@ class Meta:
queryset=ThesaurusKeyword.objects.prefetch_related(
Prefetch("keyword", queryset=ThesaurusKeywordLabel.objects.filter(lang="en"))
),
widget=autocomplete.ModelSelect2Multiple(
url="thesaurus_autocomplete",
),
label=_("Keywords from Thesaurus"),
required=False,
help_text=_(
Expand Down
5 changes: 0 additions & 5 deletions geonode/layers/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
from geonode.base.fields import MultiThesauriField
from geonode.base.models import ThesaurusKeyword, ThesaurusKeywordLabel

from dal import autocomplete


class AttributeInline(admin.TabularInline):
model = Attribute
Expand All @@ -45,9 +43,6 @@ class Meta(ResourceBaseAdminForm.Meta):
queryset=ThesaurusKeyword.objects.prefetch_related(
Prefetch("keyword", queryset=ThesaurusKeywordLabel.objects.filter(lang="en"))
),
widget=autocomplete.ModelSelect2Multiple(
url="thesaurus_autocomplete",
),
label=("Keywords from Thesaurus"),
required=False,
help_text=("List of keywords from Thesaurus",),
Expand Down

0 comments on commit e54e26c

Please sign in to comment.