Add FormFactory to common.helpers.factories
This custom factory subclasses factory.Factory, and overrides the build method, so that the model_class gets called with a dict of fields, instead of with keyword arguments. This is the way Django form classes require data to be passed to __init__.
Loading
Please register or sign in to comment