feat: make site prefix column sortable
Clicking the Prefix column header sorts device and rack lists by site name, which starts with the prefix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -104,7 +104,8 @@ def install_site_prefix_column():
|
||||
accessor=tables.A("site"),
|
||||
verbose_name="Prefix",
|
||||
empty_values=(),
|
||||
orderable=False,
|
||||
# Der Standortname beginnt mit dem Prefix, sortiert also in derselben Reihenfolge.
|
||||
order_by=("site__name",),
|
||||
)
|
||||
register_table_column(column, COLUMN_NAME, DeviceTable, RackTable)
|
||||
prepend_to_default_columns(DeviceTable)
|
||||
|
||||
Reference in New Issue
Block a user