4👍
✅
looking at the source, it seems the no-initial-data
option is stored in an option variable called load_initial_data
so i think you need
call_command('flush', interactive=False, load_initial_data=False)
Source:stackexchange.com