Skip to content

Commit

Permalink
rdrf #2462 order HL7Messages in admin,search by event_code
Browse files Browse the repository at this point in the history
  • Loading branch information
id2359 committed Apr 21, 2023
1 parent b2f3e55 commit 57191ef
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions rdrf/intframework/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,18 @@ class UpdateInline(admin.StackedInline):


class HL7MessageAdmin(admin.ModelAdmin):
list_display = ("umrn", "created", "updated", "state", "event_code", "username", "patient", "field_updates")
search_fields = ["umrn"]
list_display = (
"umrn",
"created",
"updated",
"state",
"event_code",
"username",
"patient",
"field_updates",
)
search_fields = ["umrn", "event_code"]
ordering = ["-created"]
inlines = [
UpdateInline,
]
Expand Down

0 comments on commit 57191ef

Please sign in to comment.