#30354: Filter not displayed when admin.RelatedOnlyFieldListFilter is used for auth.models.User -----------------------------------------+------------------------ Reporter: rvernica | Owner: nobody Type: Uncategorized | Status: new Component: Uncategorized | Version: 2.1 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | -----------------------------------------+------------------------ In a model where a field is a foreign keys to `auth.models.User`, `admin.RelatedOnlyFieldListFilter` does not display a filter. Something like: {{{ class Foo(models.Model): bar = models.ForeignKey(auth.models.User, on_delete=models.CASCADE) }}} And `ModelAdmin` uses `RelatedOnlyFieldListFilter` for the foreign key: {{{ class FooAdmin(admin.ModelAdmin): list_display = ('bar',) list_filter = (('bar', admin.RelatedOnlyFieldListFilter),) }}} No filter is displayed in the UI in the right side-bar. No error message is displayed. If `list_filter` is changed to: {{{ list_filter = ('bar',) }}} It works as expected.
-- Ticket URL: <https://code.djangoproject.com/ticket/30354> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/051.ed6bf9e59e7c43093fa1e56202ce69a7%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.