Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#26353 closed New feature (invalid)

Add --quiet argument to loaddata

Reported by: Adam Owned by: nobody
Component: Core (Management commands) Version: 1.9
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In my project I run loaddata to load a default list of store drinks when a store is created. This is great, but during testing I have tons of lines reading "Installed 8 object(s) from 1 fixture(s)" which makes it hard to see E/F/. in the tests, and it's ugly.

I'd like to hide those messages, but it doesn't look possible after reading source and docs.

The relevant code is here here where if I pass in a -q or --quiet option it would skip that block. Is this something that would be considered with a PR?

Change History (3)

comment:1 by Adam, 8 years ago

Summary: Add --quiet arguement to loaddataAdd --quiet argument to loaddata

comment:2 by Simon Charette, 8 years ago

Resolution: invalid
Status: newclosed

Hi awwester, it looks like this is already possible by setting the --verbosity flag to 0 for no output.

in reply to:  2 comment:3 by Adam, 8 years ago

Replying to charettes:

Hi awwester, it looks like this is already possible by setting the --verbosity flag to 0 for no output.

Oops, yeah that did the trick. Thanks!

Note: See TracTickets for help on using tickets.
Back to Top