More informative message than "No fixtures found"
|Reported by:||lsaffre||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When I run loaddata with a long list of fixture labels, and if for some of these there are no fixtures, then Django issues several times the message "No fixtures found." It would be more informative to mention the fixture name in that message. I suggest to change one line in django/core/management/commands/loaddata.py:
if fixture_object_count == 0: if verbosity >= 1: self.stdout.write("No fixtures found.\n")
Change this to:
if fixture_object_count == 0: if verbosity >= 1: self.stdout.write("No %r fixtures found.\n" % fixture_name)