File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
haystack/management/commands Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ def handle(self, **options):
16
16
"""Clears out the search index completely."""
17
17
# Cause the default site to load.
18
18
from haystack import site
19
+ self .verbosity = int (options .get ('verbosity' , 1 ))
19
20
20
21
if options .get ('interactive' , True ):
21
22
print
@@ -29,10 +30,12 @@ def handle(self, **options):
29
30
print "No action taken."
30
31
sys .exit ()
31
32
32
- print "Removing all documents from your index because you said so."
33
+ if self .verbosity >= 1 :
34
+ print "Removing all documents from your index because you said so."
33
35
34
36
from haystack import backend
35
37
sb = backend .SearchBackend ()
36
38
sb .clear ()
37
39
38
- print "All documents removed."
40
+ if self .verbosity >= 1 :
41
+ print "All documents removed."
You can’t perform that action at this time.
0 commit comments