inspectdb should output unmanaged model definitions
|Reported by:||Ian Kelly||Owned by:||nobody|
|Component:||Core (Management commands)||Version:||master|
|Has patch:||yes||Needs documentation:||yes|
|Needs tests:||yes||Patch needs improvement:||no|
I'm a little surprised that this hasn't been brought up before, but I couldn't find any existing tickets or discussion.
inspectdb should automatically set
managed = False on the model definitions it creates. Since these are preexisting tables, the user almost certainly does not want Django attempting to drop them when a reset is run.
Change History (11)
comment:1 Changed 6 years ago by
|Patch needs improvement:||unset|
|Triage Stage:||Unreviewed → Accepted|