We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python 3.10.7 Django==4.1.5 django-typed-models 0.12.0
recast() does not work when passing a class and not a string.
recast()
Here, base will be self.__class__ because typed model subclasses also have the _typedmodels_registry attribute.
self.__class__
_typedmodels_registry
Later, this will evaluates to False if the target typ is not the same as self.__class__.
False
typ
PS: the test here works because BigCat is a Feline. It should be change so that the target model is not a subclass of self.__class__.
BigCat
Feline
The text was updated successfully, but these errors were encountered:
fix issue craigds#65
ad3b474
Reverse the MRO list so that we really get the base typed model, and not the closest subclass.
Merge pull request #66 from souliane/master
c3346af
fix issue #65
No branches or pull requests
Python 3.10.7
Django==4.1.5
django-typed-models 0.12.0
recast()
does not work when passing a class and not a string.Here, base will be
self.__class__
because typed model subclasses also have the_typedmodels_registry
attribute.Later, this will evaluates to
False
if the targettyp
is not the same asself.__class__
.PS: the test here works because
BigCat
is aFeline
. It should be change so that the target model is not a subclass ofself.__class__
.The text was updated successfully, but these errors were encountered: