Skip to content

Commit

Permalink
Fix typo in admin
Browse files Browse the repository at this point in the history
  • Loading branch information
hmpf committed Apr 9, 2024
1 parent 1580df7 commit 15596aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/+fix-admin-typo.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix typo in admin that prevented sorting on incident id
2 changes: 1 addition & 1 deletion src/argus/incident/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def get_id(self, ack: Acknowledgement):
return mark_safe(f"#{ack.event.incident.pk}   [{source_incident_str}]")

get_id.short_description = "Incident ID"
get_id.admin_order_field = "event__indicent__pk"
get_id.admin_order_field = "event__incident__pk"

def get_timestamp(self, ack: Acknowledgement):
return ack.event.timestamp
Expand Down

0 comments on commit 15596aa

Please sign in to comment.