It's called when creating the database from the django models. Most significantly, this is done when running the test suite.