We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 013139a commit 2a8bec1Copy full SHA for 2a8bec1
netbox/extras/dashboard/widgets.py
@@ -251,6 +251,10 @@ def clean_url_params(self):
251
def render(self, request):
252
app_label, model_name = self.config['model'].split('.')
253
model = ObjectType.objects.get_by_natural_key(app_label, model_name).model_class()
254
+ if not model:
255
+ logger.debug(f"Dashboard Widget model_class not found: {app_label}:{model_name}")
256
+ return
257
+
258
viewname = get_viewname(model, action='list')
259
260
# Evaluate user's permission. Note that this controls only whether the HTMX element is
0 commit comments