Explorar el Código

12594 add config context to object count / list widget

Arthur hace 2 años
padre
commit
eeb15ab5d1
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      netbox/extras/dashboard/widgets.py

+ 2 - 1
netbox/extras/dashboard/widgets.py

@@ -35,7 +35,8 @@ def get_content_type_labels():
     return [
         (content_type_identifier(ct), content_type_name(ct))
         for ct in ContentType.objects.filter(
-            FeatureQuery('export_templates').get_query() | Q(app_label='extras', model='objectchange')
+            FeatureQuery('export_templates').get_query() | Q(app_label='extras', model='objectchange') |
+            Q(app_label='extras', model='configcontext')
         ).order_by('app_label', 'model')
     ]