We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f86f4f9 + aabaeec commit a0f0b29Copy full SHA for a0f0b29
netbox/extras/dashboard/widgets.py
@@ -8,6 +8,7 @@
8
from django.conf import settings
9
from django.contrib.contenttypes.models import ContentType
10
from django.core.cache import cache
11
+from django.db.models import Q
12
from django.template.loader import render_to_string
13
from django.urls import NoReverseMatch, reverse
14
from django.utils.translation import gettext as _
@@ -33,7 +34,7 @@ def get_content_type_labels():
33
34
return [
35
(content_type_identifier(ct), content_type_name(ct))
36
for ct in ContentType.objects.filter(
- FeatureQuery('export_templates').get_query()
37
+ FeatureQuery('export_templates').get_query() | Q(app_label='extras', model='objectchange')
38
).order_by('app_label', 'model')
39
]
40
0 commit comments