**example:**
from the command line this will work fine:
{{{
./manage.py flush --no-input
}}}
However if called from the `call_command` with one of the recommended ways
we might expect `no_input=True` to work the same but it doesn't.
{{{
from django.core.management import call_command
call_command("flush", no_input=True)
You have requested a flush of the database.
This will IRREVERSIBLY DESTROY all data currently in the ":memory:"
database,
and return each table to an empty state.
Are you sure you want to do this?
Type 'yes' to continue, or 'no' to cancel:
call_command("flush", no_input=False) # This will continue with no input
required
}}}
I'm not sure how widespread this is but `flush` is definitely affected
--
Ticket URL: <https://code.djangoproject.com/ticket/33892>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => duplicate
Comment:
You should use `interactive` instead of `no_input`, see
[https://code.djangoproject.com/ticket/33430#comment:3 comment].
Duplicate of #33430.
--
Ticket URL: <https://code.djangoproject.com/ticket/33892#comment:1>