#29919: Using RelatedOnlyFieldListFilter with ManyToMany causes exception
-------------------------------+--------------------------------------
     Reporter:  Dan Moore      |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  contrib.admin  |                  Version:  2.1
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  1              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------

Old description:

> 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

New description:

 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

 Demo of how to trigger bug:  https://github.com/mgrdcm/django-bug-reverse-
 related/blob/master/rrbug/rrapp/admin.py#L11-L15

--

Comment (by Dan Moore):

 Apologies for my lack of response on this, have been traveling.  I'm going
 to be working on adding tests for my fix ASAP but here's a minimal example
 of how to trigger:  Demo of how to trigger bug:  https://github.com/mgrdcm
 /django-bug-reverse-related/blob/master/rrbug/rrapp/admin.py#L11-L15

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

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.e2bc007443d63eb92690fff166951dab%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to