Opened 6 years ago

Last modified 5 years ago

#29919 closed Bug

Using RelatedOnlyFieldListFilter with ManyToMany causes exception — at Version 1

Reported by: Dan Moore Owned by: nobody
Component: contrib.admin Version: 2.1
Severity: Normal Keywords:
Cc: Collin Anderson Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Dan Moore)

Using RelatedOnlyFieldListFilter with ManyToMany causes this exception:

get_choices() got an unexpected keyword argument 'limit_choices_to'

This method in ForeignObjectRel.get_choices is missing the parameter that Field.get_choices has.

Pull Request: https://github.com/django/django/pull/10606

Change History (1)

comment:1 by Dan Moore, 6 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top