[1.8.x] Fixed #24729 -- Removed test db flush when using --keepdb.
This commit is contained in:
parent
cb370f8510
commit
6b05d3a2e3
|
@ -365,7 +365,7 @@ class BaseDatabaseCreation(object):
|
|||
verbosity=max(verbosity - 1, 0),
|
||||
interactive=False,
|
||||
database=self.connection.alias,
|
||||
test_flush=True,
|
||||
test_flush=not keepdb,
|
||||
)
|
||||
|
||||
# We then serialize the current state of the database into a string
|
||||
|
|
|
@ -75,6 +75,9 @@ Bugfixes
|
|||
* Fixed a migration crash when renaming the target model of a many-to-many
|
||||
relation (:ticket:`24725`).
|
||||
|
||||
* Removed flushing of the test database with :djadminopt:`--keepdb`, which
|
||||
prevented apps with data migrations from using the option (:ticket:`24729`).
|
||||
|
||||
Optimizations
|
||||
=============
|
||||
|
||||
|
|
Loading…
Reference in New Issue