Maik Hoepfel
7d03ec24bc
Use get_model and get_class for factories
This means that custom deployments can reuse Oscar's test factories,
even if they're running different models.
This commit was triggered by the StockRecordFactory. The datacash
factory relied on it, but installed Oscar as a dependency and hence the
custom StockRecord model used in Oscar's test suite was not available.