Re: [Django] #35056: admin.E013 on ManyToManyField with related_name crashes. (was: AttributeError: 'ManyToManyField' object has no attribute 'through')

4 views
Skip to first unread message

Django

unread,
Dec 22, 2023, 3:33:12 AM12/22/23
to django-...@googlegroups.com
#35056: admin.E013 on ManyToManyField with related_name crashes.
---------------------------------+------------------------------------
Reporter: Thomas Feldmann | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 5.0
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+------------------------------------
Changes (by Mariusz Felisiak):

* cc: Hrushikesh Vaidya (added)
* severity: Normal => Release blocker
* stage: Unreviewed => Accepted


Comment:

Thanks for the report! `ManyToManyField`s with the `through` are generally
not supported in the admin (#12203) but this should not crash. It seems
that `ManyToManyRel` is recognized as `many_to_many` but it's
`remote_field` doesn't have `through`

Regression in 107865780aa44914e21d27fdf4ca269bc61c7f01

--
Ticket URL: <https://code.djangoproject.com/ticket/35056#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Reply all
Reply to author
Forward
0 new messages