Skip to content

Commit

Permalink
Merge pull request #382 from maykinmedia/issue/381-search-through-data
Browse files Browse the repository at this point in the history
[#381] Improve admin search to also search through object data
  • Loading branch information
annashamray authored Apr 29, 2024
2 parents 7b285b4 + c7897d5 commit b35c2a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/objects/core/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def get_corrected_by(self, obj):
@admin.register(Object)
class ObjectAdmin(admin.ModelAdmin):
list_display = ("id", "object_type", "current_record")
search_fields = ("uuid",)
search_fields = ("uuid", "records__data")
inlines = (ObjectRecordInline,)
list_filter = ("object_type",)

Expand Down

0 comments on commit b35c2a3

Please sign in to comment.