Skip to content

Removing a plugin can cause exceptions when viewing change records #8425

@jeremystretch

Description

@jeremystretch

NetBox version

v3.1.6

Python version

3.8

Steps to Reproduce

  1. Install a plugin
  2. Create an instance of a model provided by the plugin, resulting in the creation of a changelog entry
  3. Uninstall the plugin
  4. View the changelog

This has come up a few times in discussion. One recent example can be found in #8418.

Expected Behavior

The changelog should render successfully.

Observed Behavior

An exception is raised when the changelog entry relevant to the plugin model is present:

<class 'AttributeError'>

'NoneType' object has no attribute '_base_manager'

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions