#22676 closed Bug (fixed)
When doing a makemigration --dry-run skip asking about default values for non-nullable fields?
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Migrations | Version: | 1.7-beta-2 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | yes | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | yes |
Description
Given that the output for --dry-run is just a summary of what's changing, I wouldn't expect to need to supply default values for new non-nullable fields.
Change History (6)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Has patch: | set |
---|
comment:3 by , 10 years ago
Type: | Uncategorized → Bug |
---|
comment:4 by , 10 years ago
Easy pickings: | unset |
---|---|
Needs tests: | set |
Triage Stage: | Unreviewed → Accepted |
comment:5 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
I agree with you. No need for that step since the default value won't be used anyway.
I'll leave the ticket to a core developer to accept though.
Here's my PR: https://github.com/django/django/pull/2698
Thanks.