Opened 20 years ago
Last modified 14 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 )
class Amodel(models.Model):
field = models.ManyToMany(SomeOtherModel)
class Admin:
list_filter = ('-field') # just like ordering
Change History (5)
comment:1 by , 20 years ago
by , 20 years ago
| Attachment: | exclude_in_admin.diff added |
|---|
comment:2 by , 20 years ago
| priority: | high → normal |
|---|
comment:3 by , 20 years ago
| Summary: | Exclude filter for the admin → [patch] Exclude filter for the admin |
|---|
There's a patch provided, adding [patch]
Note:
See TracTickets
for help on using tickets.
Typo in example
class Amodel(models.Model): field = models.ManyToManyField(SomeOtherModel) class Admin: list_filter = ('-field') # just like orderingMissing: Should also raise a not implemented error for date and booleanfields.