Source code for common.helpers.factories
__copyright__ = "Copyright © Stichting SciPost (SciPost Foundation)"
__license__ = "AGPL v3"
import factory
[docs]class FormFactory(factory.Factory):
class Meta:
strategy = factory.BUILD_STRATEGY
@classmethod
def _build(cls, model_class, *args, **kwargs):
return model_class(kwargs)