Override Django's management commands to suppress suggestion to create migrations #3246

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

Originally created by @jeremystretch on GitHub (Jan 30, 2020).

Proposed Changes

Alter or remove some of Django's built-in management commands to simplify the process of applying schema migrations for users. It might be best to introduce a "developers only" configuration parameter, and simply remove the makemigrations command from the list of available commands unless that parameter is set.

Justification

When a user does not follow the documented upgrade procedure, they may encounter a scenario where Django warns them of missing migrations, and prompts them to create new migrations. As this should never be required of an end user, we should remove that ability to help preserve the integrity of the installation environment.

Originally created by @jeremystretch on GitHub (Jan 30, 2020). ### Proposed Changes Alter or remove some of Django's built-in management commands to simplify the process of applying schema migrations for users. It might be best to introduce a "developers only" configuration parameter, and simply remove the `makemigrations` command from the list of available commands unless that parameter is set. ### Justification When a user does not follow the documented upgrade procedure, they may encounter a scenario where Django warns them of missing migrations, and prompts them to create new migrations. As this should *never* be required of an end user, we should remove that ability to help preserve the integrity of the installation environment.
adam added the status: acceptedtype: housekeeping labels 2025-12-29 18:27:03 +01:00
adam closed this issue 2025-12-29 18:27:04 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3246