Opened 18 years ago

Last modified 13 years ago

#1722 closed enhancement

[patch] Exclude filter for the admin — at Version 4

Reported by: [530] Owned by: Adrian Holovaty
Component: contrib.admin Version: dev
Severity: normal Keywords:
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Adrian Holovaty)

class Amodel(models.Model):

    field = models.ManyToMany(SomeOtherModel)

    class Admin:
        list_filter = ('-field') # just like ordering

Change History (5)

comment:1 by anonymous, 18 years ago

Typo in example

class Amodel(models.Model):

    field = models.ManyToManyField(SomeOtherModel)

    class Admin:
        list_filter = ('-field') # just like ordering

Missing: Should also raise a not implemented error for date and booleanfields.

by anonymous, 18 years ago

Attachment: exclude_in_admin.diff added

comment:2 by anonymous, 18 years ago

priority: highnormal

comment:3 by mir@…, 18 years ago

Summary: Exclude filter for the admin[patch] Exclude filter for the admin

There's a patch provided, adding [patch]

comment:4 by Adrian Holovaty, 18 years ago

Description: modified (diff)

What does this do?

Note: See TracTickets for help on using tickets.
Back to Top