Skip to content

Commit

Permalink
[Fixes #12904] Include advertised in the list editable fields (#12905) (
Browse files Browse the repository at this point in the history
#12906)

* Include advertised in the list editable fields for documents inside the Django admin

* fixed formatting

(cherry picked from commit 267ad61)

Co-authored-by: Giovanni Allegri <[email protected]>
  • Loading branch information
github-actions[bot] and giohappy authored Feb 12, 2025
1 parent 3df8709 commit 5726c6d
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions geonode/documents/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,19 @@ class Meta(ResourceBaseAdminForm.Meta):

class DocumentAdmin(TabbedTranslationAdmin):
exclude = ("ll_bbox_polygon", "bbox_polygon", "srid")
list_display = ("id", "title", "date", "category", "group", "is_approved", "is_published", "metadata_completeness")
list_display = (
"id",
"title",
"date",
"category",
"group",
"is_approved",
"is_published",
"advertised",
"metadata_completeness",
)
list_display_links = ("id",)
list_editable = ("title", "category", "group", "is_approved", "is_published")
list_editable = ("title", "category", "group", "is_approved", "is_published", "advertised")
list_filter = (
"date",
"date_type",
Expand Down

0 comments on commit 5726c6d

Please sign in to comment.