Re: [Django] #34345: Add system check for filter_horizontal/filter_vertical on ManyToManyFields with intermediary models. (was: filter_horizontal and filter_vertical don't work with through)

2 views
Skip to first unread message

Django

unread,
Feb 17, 2023, 1:35:14 AM2/17/23
to django-...@googlegroups.com
#34345: Add system check for filter_horizontal/filter_vertical on ManyToManyFields
with intermediary models.
--------------------------------------+------------------------------------
Reporter: David Pratten | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: contrib.admin | Version: 4.1
Severity: Normal | 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):

* component: Documentation => contrib.admin
* stage: Unreviewed => Accepted


Comment:

What do you think about raising `admin.E013` in this case?

''"fields[n]/fieldsets[n][m]/filter_vertical[n]/filter_horizontal[n]
cannot include the ManyToManyField <field name>, because that field
manually specifies a relationship model."''

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

Reply all
Reply to author
Forward
0 new messages