- Dec 20, 2016
-
-
Geert Kapteijns authored
-
Geert Kapteijns authored
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__.
-
- Dec 16, 2016
-
-
Geert Kapteijns authored
This function helps to create form data from models. See example given.
-