Skip to content

Commit

Permalink
add preview
Browse files Browse the repository at this point in the history
  • Loading branch information
submarcos committed Jul 5, 2024
1 parent dafdc34 commit 526c1b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/project/observations/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class ObservationCategoryAdmin(TreeAdmin):
list_display = ("label", "description", "picto_preview")
search_fields = ("label", "description")
ordering = ("label",)
readonly_fields = ("picto_preview",)

@admin.display(description=_("Preview"))
def picto_preview(self, obj):
Expand Down

0 comments on commit 526c1b8

Please sign in to comment.