#29919: Using RelatedOnlyFieldListFilter with reverse ManyToMany crashes
-------------------------------+------------------------------------
Reporter: Dan Moore | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 2.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by Tim Graham):
* stage: Unreviewed => Accepted
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
>
> Demo of how to trigger bug: https://github.com/mgrdcm/django-bug-
> reverse-related/blob/master/rrbug/rrapp/admin.py#L11-L15
New description:
Using RelatedOnlyFieldListFilter with a reverse ManyToMany relation 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
--
--
Ticket URL: <https://code.djangoproject.com/ticket/29919#comment:5>
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.dabcb781e08b68e8df4d75a29d529974%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.