Is it a good way using a DjangoModelFactory and other factories in API requests?

I noticed that DjangoModelFactory has got more functionality than DRF ModelSerializers. I want to use DjangoModelFactory to create records in database in my API, but it seems no one do this. In most cases, Factories are used only for tests, not in usual code. Why? Is it a good way using them in API requests, for example?

Back to Top