def METHOD_NAME(self):
    for db_name in self._databases_names(include_mirrors=False):
         call_command('flush', verbosity=0, interactive=False,
                        database=db_name, skip_checks=True,
                        reset_sequences=False,
                        allow_cascade=self.available_apps is not None,
                        inhibit_post_migrate=self.available_apps is not None)