Explorar o código

Disable sorting by object_repr on ObjectChangeTable

kkthxbye-code %!s(int64=3) %!d(string=hai) anos
pai
achega
0cacac82ee
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      netbox/extras/tables/tables.py

+ 2 - 1
netbox/extras/tables/tables.py

@@ -195,7 +195,8 @@ class ObjectChangeTable(NetBoxTable):
     object_repr = tables.TemplateColumn(
     object_repr = tables.TemplateColumn(
         accessor=tables.A('changed_object'),
         accessor=tables.A('changed_object'),
         template_code=OBJECTCHANGE_OBJECT,
         template_code=OBJECTCHANGE_OBJECT,
-        verbose_name='Object'
+        verbose_name='Object',
+        orderable=False
     )
     )
     request_id = tables.TemplateColumn(
     request_id = tables.TemplateColumn(
         template_code=OBJECTCHANGE_REQUEST_ID,
         template_code=OBJECTCHANGE_REQUEST_ID,