Skip to content

Commit 267ad61

Browse files
authored
[Fixes #12904] Include advertised in the list editable fields (#12905)
* Include advertised in the list editable fields for documents inside the Django admin * fixed formatting
1 parent a9450f2 commit 267ad61

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

geonode/documents/admin.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,19 @@ class Meta(ResourceBaseAdminForm.Meta):
3737

3838
class DocumentAdmin(TabbedTranslationAdmin):
3939
exclude = ("ll_bbox_polygon", "bbox_polygon", "srid")
40-
list_display = ("id", "title", "date", "category", "group", "is_approved", "is_published", "metadata_completeness")
40+
list_display = (
41+
"id",
42+
"title",
43+
"date",
44+
"category",
45+
"group",
46+
"is_approved",
47+
"is_published",
48+
"advertised",
49+
"metadata_completeness",
50+
)
4151
list_display_links = ("id",)
42-
list_editable = ("title", "category", "group", "is_approved", "is_published")
52+
list_editable = ("title", "category", "group", "is_approved", "is_published", "advertised")
4353
list_filter = (
4454
"date",
4555
"date_type",

0 commit comments

Comments
 (0)