Fix a bug in the consist admin search

This commit is contained in:
2025-04-27 22:22:47 +02:00
parent 1222116874
commit e9ec126ada

View File

@@ -28,7 +28,7 @@ class ConsistAdmin(SortableAdminBase, admin.ModelAdmin):
"creation_time",
"updated_time",
)
list_filter = ("company", "era", "published")
list_filter = ("company__name", "era", "published")
list_display = ("__str__",) + list_filter + ("country_flag",)
search_fields = ("identifier",) + list_filter
save_as = True