-
-
Notifications
You must be signed in to change notification settings - Fork 458
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
ManyToManyField.through
no longer has _default_manager
attribute
#1742
Labels
Comments
intgr
added
bug
Something isn't working
regression
Behavior has changed for worse with a release
labels
Sep 28, 2023
Aha, nice find! django-stubs/mypy_django_plugin/transformers/models.py Lines 683 to 742 in 84a085c
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug report
Following the call for testing in #1740, I tried
django-stubs
git master and ran into this issue.For example if
MyModel
has relationmanytomany = models.ManyToManyField(OtherModel)
What's wrong
When accessing
MyModel.manytomany.through._default_manager
, I'm getting error:MyModel.manytomany.through.objects
works fine, however.I can also reproduce this after these changes in django-stubs test suite:
System information
python
version: 3.11.5django
version: 4.1.11mypy
version: 1.5.1django-stubs
version: (git master, commit 84a085c)django-stubs-ext
version: 4.2.2The text was updated successfully, but these errors were encountered: