Opened 10 years ago
Closed 10 years ago
#24369 closed Cleanup/optimization (fixed)
flush requires migrations
Reported by: | tanner | Owned by: | nobody |
---|---|---|---|
Component: | Core (Management commands) | Version: | 1.7 |
Severity: | Normal | Keywords: | flush |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
./manage flush
raises
RuntimeError: Error creating new content types. Please make sure contenttypes is migrated before trying to migrate apps individually.
if migrations have not been applied or the database does not yet exist.
I think it should just exit normally in this case.
Change History (7)
comment:1 by , 10 years ago
Component: | Uncategorized → Core (Management commands) |
---|---|
Keywords: | flush added |
Triage Stage: | Unreviewed → Accepted |
Type: | Uncategorized → Cleanup/optimization |
comment:3 by , 10 years ago
Has patch: | set |
---|
comment:4 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:6 by , 10 years ago
Resolution: | fixed |
---|---|
Status: | closed → new |
comment:7 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Suggested change:
django/core/management/commands/flush.py
I'm not absolutely convinced about the need to write a test for that...