Remove stale content types as part of the upgrade process #2742

Closed
opened 2025-12-29 18:21:37 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Jul 16, 2019).

Proposed Changes

Include manage.py remove_stale_contenttypes --no-input in the upgrade script. This will automatically remove ContentType objects representing models which have been removed from NetBox, as well as any associated Permission objects.

Justification

Avoids potential confusion and keeps things tidy.

Originally created by @jeremystretch on GitHub (Jul 16, 2019). ### Proposed Changes Include `manage.py remove_stale_contenttypes --no-input` in the upgrade script. This will automatically remove ContentType objects representing models which have been removed from NetBox, as well as any associated Permission objects. ### Justification Avoids potential confusion and keeps things tidy.
adam added the status: acceptedtype: housekeeping labels 2025-12-29 18:21:37 +01:00
adam closed this issue 2025-12-29 18:21:37 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2742