diff --git a/docs/release-notes/version-3.0.md b/docs/release-notes/version-3.0.md index e88d1fc6f..9c248f449 100644 --- a/docs/release-notes/version-3.0.md +++ b/docs/release-notes/version-3.0.md @@ -7,6 +7,7 @@ * [#7070](https://github.com/netbox-community/netbox/issues/7070) - Fix exception when filtering by prefix max length in UI * [#7071](https://github.com/netbox-community/netbox/issues/7071) - Fix exception when removing a primary IP from a device/VM * [#7072](https://github.com/netbox-community/netbox/issues/7072) - Fix table configuration under prefix child object views +* [#7082](https://github.com/netbox-community/netbox/issues/7082) - Avoid exception when referencing invalid content type in table * [#7083](https://github.com/netbox-community/netbox/issues/7083) - Correct labeling for VM memory attribute * [#7084](https://github.com/netbox-community/netbox/issues/7084) - Fix KeyError exception when editing access VLAN on an interface * [#7096](https://github.com/netbox-community/netbox/issues/7096) - Home links should honor `BASE_PATH` configuration diff --git a/netbox/utilities/tables.py b/netbox/utilities/tables.py index 26a16c171..ed1dcf5ce 100644 --- a/netbox/utilities/tables.py +++ b/netbox/utilities/tables.py @@ -237,9 +237,13 @@ class ContentTypeColumn(tables.Column): Display a ContentType instance. """ def render(self, value): + if value is None: + return None return content_type_name(value) def value(self, value): + if value is None: + return None return f"{value.app_label}.{value.model}"