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
* Include advertised in the list editable fields for documents inside the Django admin

* fixed formatting
  • Loading branch information
giohappy authored Feb 12, 2025
1 parent a9450f2 commit 267ad61
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 267ad61

Please # to comment.