diff options
| author | Claude Paroz <claude@2xlibre.net> | 2015-02-28 12:11:27 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2015-02-28 12:11:27 +0100 |
| commit | 90ab6ee6123f2b378a068988526b409854ddec77 (patch) | |
| tree | 2648280c76bea7e6690b0c254bcea66a2d55fc42 | |
| parent | 9f1dbe29c0dbae57ff7950f3f64a0d083177cca8 (diff) | |
Revert "Fixed #24369 -- Prevented crash when `flush`ing before db migration"
This reverts commit 9f1dbe29c0dbae57ff7950f3f64a0d083177cca8.
The proposed solution does not pass the test suite.
| -rw-r--r-- | django/core/management/commands/flush.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/django/core/management/commands/flush.py b/django/core/management/commands/flush.py index eceb873c51..97c94501c4 100644 --- a/django/core/management/commands/flush.py +++ b/django/core/management/commands/flush.py @@ -46,10 +46,6 @@ class Command(BaseCommand): sql_list = sql_flush(self.style, connection, only_django=True, reset_sequences=reset_sequences, allow_cascade=allow_cascade) - if not sql_list: - raise CommandError( - "No commands to proceed with, maybe the database is still empty?" - ) if interactive: confirm = input("""You have requested a flush of the database. |
