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

Closed
opened 2025-12-29 19:35:23 +01:00 by adam · 2 comments
Owner

Originally created by @jeremystretch on GitHub (Jan 21, 2022).

Originally assigned to: @DanSheps on GitHub.

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'
Originally created by @jeremystretch on GitHub (Jan 21, 2022). Originally assigned to: @DanSheps on GitHub. ### 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' ```
adam added the type: bugstatus: accepted labels 2025-12-29 19:35:23 +01:00
adam closed this issue 2025-12-29 19:35:23 +01:00
Author
Owner

@jeremystretch commented on GitHub (Feb 1, 2022):

@DanSheps have you made any progress on this?

@jeremystretch commented on GitHub (Feb 1, 2022): @DanSheps have you made any progress on this?
Author
Owner

@DanSheps commented on GitHub (Feb 2, 2022):

@jeremystretch I think I captured all locations where this might pop up.

@DanSheps commented on GitHub (Feb 2, 2022): @jeremystretch I think I captured all locations where this might pop up.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5986