Skip to content

Commit

Permalink
Resolves GeoNode#6925: add thesaurus in admin page
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiagiupponi committed Feb 5, 2021
1 parent f2f433e commit 585801a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion geonode/layers/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from geonode.layers.models import LayerFile, UploadSession

from geonode.base.fields import MultiThesauriField
from geonode.base.models import ThesaurusKeyword, ThesaurusKeywordLabel
from geonode.base.models import ThesaurusKeyword, ThesaurusKeywordLabel, Thesaurus

from dal import autocomplete

Expand Down Expand Up @@ -98,6 +98,10 @@ class AttributeAdmin(admin.ModelAdmin):
search_fields = ('attribute', 'attribute_label',)


class ThesaurusAdmin(admin.ModelAdmin):
model = Thesaurus


class StyleAdmin(admin.ModelAdmin):
model = Style
list_display_links = ('sld_title',)
Expand All @@ -120,3 +124,4 @@ class UploadSessionAdmin(admin.ModelAdmin):
admin.site.register(Attribute, AttributeAdmin)
admin.site.register(Style, StyleAdmin)
admin.site.register(UploadSession, UploadSessionAdmin)
admin.site.register(Thesaurus, ThesaurusAdmin)

0 comments on commit 585801a

Please sign in to comment.