Fixed #8101 -- Allow the strings '1' and '0' as filter values for boolean
commit3efb2ab75ed167b4ac2ae9fb931b4ffffd66d215
authormtredinnick <mtredinnick@bcc190cf-cafb-0310-a4f2-bffc1f526a37>
Fri, 29 Aug 2008 02:40:56 +0000 (29 02:40 +0000)
committermtredinnick <mtredinnick@bcc190cf-cafb-0310-a4f2-bffc1f526a37>
Fri, 29 Aug 2008 02:40:56 +0000 (29 02:40 +0000)
tree85800e11c78680ee76ca2370bc0b9b3c977f392a
parent9325fe9c415a0887de3a96d567ee5f5e6fb91048
Fixed #8101 -- Allow the strings '1' and '0' as filter values for boolean
fields (the latter was causing problems). This allows these values in URLs
(e.g. the admin filtering).

Not an ideal solution to the problem, but will do the job for the time being.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8691 bcc190cf-cafb-0310-a4f2-bffc1f526a37
django/db/models/fields/__init__.py
tests/regressiontests/model_fields/tests.py