summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/core/management/commands/sqlinitialdata.py8
-rw-r--r--docs/man/django-admin.13
-rw-r--r--tests/bash_completion/tests.py2
3 files changed, 1 insertions, 12 deletions
diff --git a/django/core/management/commands/sqlinitialdata.py b/django/core/management/commands/sqlinitialdata.py
deleted file mode 100644
index 851baa86fe..0000000000
--- a/django/core/management/commands/sqlinitialdata.py
+++ /dev/null
@@ -1,8 +0,0 @@
-from django.core.management.base import AppCommand, CommandError
-
-
-class Command(AppCommand):
- help = "RENAMED: see 'sqlcustom'"
-
- def handle(self, *apps, **options):
- raise CommandError("This command has been renamed. Use the 'sqlcustom' command instead.")
diff --git a/docs/man/django-admin.1 b/docs/man/django-admin.1
index 621d37c554..5a658da6a4 100644
--- a/docs/man/django-admin.1
+++ b/docs/man/django-admin.1
@@ -98,9 +98,6 @@ Prints the SQL statements that would be executed for the "flush" command.
.BI "sqlindexes [" "app_label ..." "]"
Prints the CREATE INDEX SQL statements for the given model module name(s).
.TP
-.BI "sqlinitialdata [" "app_label ..." "]"
-Prints the initial INSERT SQL statements for the given app name(s).
-.TP
.BI "sqlsequencereset [" "app_label ..." "]"
Prints the SQL statements for resetting PostgreSQL sequences for the
given app name(s).
diff --git a/tests/bash_completion/tests.py b/tests/bash_completion/tests.py
index 8653af3c85..ecfc29c897 100644
--- a/tests/bash_completion/tests.py
+++ b/tests/bash_completion/tests.py
@@ -66,7 +66,7 @@ class BashCompletionTests(unittest.TestCase):
"Subcommands can be autocompleted"
self._user_input('django-admin.py sql')
output = self._run_autocomplete()
- self.assertEqual(output, ['sql sqlall sqlclear sqlcustom sqldropindexes sqlflush sqlindexes sqlinitialdata sqlmigrate sqlsequencereset'])
+ self.assertEqual(output, ['sql sqlall sqlclear sqlcustom sqldropindexes sqlflush sqlindexes sqlmigrate sqlsequencereset'])
def test_help(self):
"No errors, just an empty list if there are no autocomplete options"