mirror of
https://github.com/django/django.git
synced 2024-11-29 14:46:18 +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.using = options.get('database')
|
||||
self.app_label = options.get('app_label')
|
||||
self.hide_empty = options.get('hide_empty', False)
|
||||
self.verbosity = options.get('verbosity')
|
||||
|
||||
with transaction.atomic(using=self.using):
|
||||
@ -120,9 +119,7 @@ class Command(BaseCommand):
|
||||
cursor.execute(line)
|
||||
|
||||
if self.verbosity >= 1:
|
||||
if self.fixture_count == 0 and self.hide_empty:
|
||||
pass
|
||||
elif self.fixture_object_count == self.loaded_object_count:
|
||||
if self.fixture_object_count == self.loaded_object_count:
|
||||
self.stdout.write("Installed %d object(s) from %d fixture(s)" %
|
||||
(self.loaded_object_count, self.fixture_count))
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user