mirror of
https://github.com/django/django.git
synced 2024-12-01 15:42:04 +01:00
Removed obsolete, unused option 'hide_empty' from loaddata command.
Unused since 67235fd4ef
.
This commit is contained in:
parent
8c42cf0cbd
commit
fb3540d6a4
@ -53,7 +53,6 @@ class Command(BaseCommand):
|
|||||||
self.ignore = options.get('ignore')
|
self.ignore = options.get('ignore')
|
||||||
self.using = options.get('database')
|
self.using = options.get('database')
|
||||||
self.app_label = options.get('app_label')
|
self.app_label = options.get('app_label')
|
||||||
self.hide_empty = options.get('hide_empty', False)
|
|
||||||
self.verbosity = options.get('verbosity')
|
self.verbosity = options.get('verbosity')
|
||||||
|
|
||||||
with transaction.atomic(using=self.using):
|
with transaction.atomic(using=self.using):
|
||||||
@ -120,9 +119,7 @@ class Command(BaseCommand):
|
|||||||
cursor.execute(line)
|
cursor.execute(line)
|
||||||
|
|
||||||
if self.verbosity >= 1:
|
if self.verbosity >= 1:
|
||||||
if self.fixture_count == 0 and self.hide_empty:
|
if self.fixture_object_count == self.loaded_object_count:
|
||||||
pass
|
|
||||||
elif self.fixture_object_count == self.loaded_object_count:
|
|
||||||
self.stdout.write("Installed %d object(s) from %d fixture(s)" %
|
self.stdout.write("Installed %d object(s) from %d fixture(s)" %
|
||||||
(self.loaded_object_count, self.fixture_count))
|
(self.loaded_object_count, self.fixture_count))
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user