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
If you try to make a subclass of a factory declared using the 'app.Model' syntax for FACTORY_FOR (introduced from #66) then the metaclass falls over when it does an issubclass check. This is because it still has a string and has not resolved it into a class yet.
I don't quite understand the difference between _discover_associated_class() and _load_target_class(), except that one is a function of the Metaclass and the other of the resultant class. Because the Django customisation only exists in the resultant class using _load_target_class() this falls over.
The text was updated successfully, but these errors were encountered:
If you try to make a subclass of a factory declared using the
'app.Model'
syntax forFACTORY_FOR
(introduced from #66) then the metaclass falls over when it does anissubclass
check. This is because it still has a string and has not resolved it into a class yet.I don't quite understand the difference between
_discover_associated_class()
and_load_target_class()
, except that one is a function of the Metaclass and the other of the resultant class. Because the Django customisation only exists in the resultant class using_load_target_class()
this falls over.The text was updated successfully, but these errors were encountered: