Stale content types are probably not removed on upgrade #4316

Closed
opened 2025-12-29 18:34:42 +01:00 by adam · 1 comment
Owner

Originally created by @JocelynDelalande on GitHub (Nov 30, 2020).

9f363f493b/upgrade.sh (L64)

Just stumbled uppon ; did not check on your project, but ./manage.py remove_stale_contenttypes --noinput does nothing (as if user typed "No"). So it is possible that eeb3434349 has no effect at all.

Ref #3347

Originally created by @JocelynDelalande on GitHub (Nov 30, 2020). https://github.com/netbox-community/netbox/blob/9f363f493bd8fffcf47865c9060dcbaad57ddabe/upgrade.sh#L64 Just stumbled uppon ; did not check on your project, but `./manage.py remove_stale_contenttypes --noinput` does nothing (as if user typed "No"). So it is possible that https://github.com/netbox-community/netbox/commit/eeb343434954ef9f8dc6631db93cfc7bfae70835 has no effect at all. Ref #3347
adam closed this issue 2025-12-29 18:34:42 +01:00
Author
Owner

@JocelynDelalande commented on GitHub (Nov 30, 2020):

My bad, has been fixed in Django 3.1 you use.

@JocelynDelalande commented on GitHub (Nov 30, 2020): My bad, has been [fixed](https://github.com/django/django/commit/08ebed5e7975b2b735ab8ec0384ccb8e31b76056) in Django 3.1 you use.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4316