SciPost Code Repository

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

Set default strategy for FormFactory to build

parent bdcbde1c
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,9 @@ import factory
class FormFactory(factory.Factory):
class Meta:
strategy = factory.BUILD_STRATEGY
@classmethod
def _build(cls, model_class, *args, **kwargs):
return model_class(kwargs)
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