You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I did self.base_organization = BaseOrganizationFactory(parent__parent__parent__parent=None) or parent = factory.SubFactory( "myapp.tests.factories.BaseOrganizationFactory", parent=None ) but none of them worked the same error happened
The text was updated successfully, but these errors were encountered:
Description
*I have a model class A which has parent field which referential for the same model . I want to create a factory for this but some error occured *
To Reproduce
*When writing a test class and using above factory for setup method this error occured *
Model / Factory code
The issue
If i run the tests RecursionError: maximum recursion depth exceeded error occured
Notes
I did
self.base_organization = BaseOrganizationFactory(parent__parent__parent__parent=None)
orparent = factory.SubFactory( "myapp.tests.factories.BaseOrganizationFactory", parent=None )
but none of them worked the same error happenedThe text was updated successfully, but these errors were encountered: