Use call_command to invoke loaddata.
Review Request #5356 — Created Jan. 30, 2014 and submitted
Use call_command to invoke loaddata.
When triggering loaddata from rb-site, we were using an old method of invoking
the command which wouldn't set up default values for options. This change
updates us to usecall_command()
instead ofhandle()
Smoke tested rb-site install.
- Summary:
-
Force 'database' to be DEFAULT_DB_ALIAS when invoking loaddata from rb-site.Use call_command to invoke loaddata.
- Description:
-
~ Force 'database' to be DEFAULT_DB_ALIAS when invoking loaddata from rb-site.
~ Use call_command to invoke loaddata.
~ For some reason, it's possible that the 'database' option ends up set to
~ something other than 'default' when installing using rb-site and passing all ~ the options on the command-line. I haven't been able to reproduce it, but ~ When triggering loaddata from rb-site, we were using an old method of invoking
~ the command which wouldn't set up default values for options. This change ~ updates us to use call_command()
instead ofhandle()
- there's really no reason why we'd ever pass anything other than 'default', so - I've specified it explicitly in the call to loaddata.