Explorar el Código

Disable sorting by object_repr on ObjectChangeTable

kkthxbye-code hace 3 años
padre
commit
0cacac82ee
Se han modificado 1 ficheros con 2 adiciones y 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(
         accessor=tables.A('changed_object'),
         template_code=OBJECTCHANGE_OBJECT,
-        verbose_name='Object'
+        verbose_name='Object',
+        orderable=False
     )
     request_id = tables.TemplateColumn(
         template_code=OBJECTCHANGE_REQUEST_ID,