Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#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


-- --

class User(models.Model):
    is_active = models.BooleanField(default=True)

-- --

class UserAdmin(admin.ModelAdmin):
    list_filter = ('is_active', ), 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 Arthur, 16 years ago

Resolution: duplicate
Status: newclosed

comment:2 by simon, 16 years ago

Duplicate of #8101

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