-
-
Notifications
You must be signed in to change notification settings - Fork 453
New issue
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
'self'
-referencing relationship causes crash
#626
Comments
Yes, looks like we need a special case for it. @iacobfred are you interested in working on this? |
I'd be willing to give it a shot. I'm only a de facto developer, though, so it's possible that the typeddjango maintainers might be more pleased with someone else's efforts. ; ) |
I am running into the same problem - I tried reproducing this in the test framework but couldn't get the error there. Can you give me a hint as to what is wrong with this test case? It just passes fine without an error.
|
Traceback
I did some debugging and found that when this
'str' object has no attribute '_meta'
error happens, the value of self.remote_field is'self'
.To Reproduce
Here's the abridged content of my models.py:
The text was updated successfully, but these errors were encountered: