Bad verbosity in loaddata command when fixtures location passed by param baddly
|Reported by:||Manuel Saelices||Owned by:||Manuel Saelices|
|Component:||Core (Management commands)||Version:||master|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Look, for example this execution:
~$ ./manage.py loaddata something_wrong_but_developer_doesnt_know.xml ~$ <-- no error message
But in [source:django/trunk/django/core/management/commands/loaddata.py loaddata.py] there is this code fragment:
if object_count == 0: if verbosity >= 2: print "No fixtures found."
I think maybe it could be better to remove the verbosity condition.
Change History (10)
comment:7 Changed 5 years ago by
|Triage Stage:||Design decision needed → Accepted|