-
-
Notifications
You must be signed in to change notification settings - Fork 459
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
Not detecting Foreign key reverse relationship #150
Comments
I can't reproduce. Could you provide more info? Are those models in the same file, or in different ones? Also, as always, make sure plugin is enabled in |
Yes, it's in the same file. This is my
|
I will try to create a small project to reproduce the error |
Okay, it works fine on a minimal project, so I guess it's something related to my project. I will investigate a bit more |
I found the problem (sorry for the spam), my model has a custom manager:
and my manager runs like this:
|
I still don't quite understand how custom manager could affect a |
Nevermind, I can reproduce with
Thanks for the insight! |
Hello,
I couldn't get the reverse relationships to work, at first I thought that it's not supported but from browser other issues it seems that it's supported.
Here is an example based on my code:
This fails with
error: "Transaction" has no attribute "transactionlog_set"
I also tried to add the
related_name
but it didn't help.Thanks!
mypy==0.720
django-stubs==1.1.0
The text was updated successfully, but these errors were encountered: