Просмотр исходного кода

12594 add config context to object count / list widget

Arthur 2 лет назад
Родитель
Сommit
eeb15ab5d1
1 измененных файлов с 2 добавлено и 1 удалено
  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')
     ]