SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit bdcbde1c authored by Geert Kapteijns's avatar Geert Kapteijns
Browse files

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__.
parent 08f73246
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment