#8360 closed (duplicate)
Admin site filtering on fields of boolean type produces for "No(False)" option the same results as for "Yes(True)" option.
Reported by: | Arthur | Owned by: | nobody |
---|---|---|---|
Component: | Uncategorized | Version: | dev |
Severity: | Keywords: | list_filter filter BooleanField | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
-- models.py --
class User(models.Model): is_active = models.BooleanField(default=True)
-- admin.py --
class UserAdmin(admin.ModelAdmin): list_filter = ('is_active', ) admin.site.register(User, UserAdmin)
-- url variants for filtering in admin site --
a) ../user/?is_active__exact=1 # "Yes" option b) ../user/?is_active__exact=0 # "No" option, produces the same result list as for "Yes" option
Change History (2)
comment:1 by , 16 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:2 by , 16 years ago
Note:
See TracTickets
for help on using tickets.
Duplicate of #8101