Changes between Initial Version and Version 1 of Ticket #29618, comment 3


Ignore:
Timestamp:
Jul 31, 2018, 3:19:42 PM (6 years ago)
Author:
Tim Graham

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29618, comment 3

    initial v1  
    1 I believe the request is to allow `Mode.objects.filter(booleanfield='true')` (see [https://github.com/django/django/blob/master/django/db/models/fields/__init__.py#L997-L1007 BooleanField.to_python()]). I don't find the existing laxness of accepting 0, 1, 't', 'f', 'True', 'False', True, and False particularly compelling and I wouldn't advocate for being even more liberal in the accepted values.
     1I believe the request is to allow `Mode.objects.filter(booleanfield='true')` (see [https://github.com/django/django/blob/b4fa94aed8ec5209176c9fa88aba3eacdca837f3/django/db/models/fields/__init__.py#L997-L1007 BooleanField.to_python()]). I don't find the existing laxness of accepting 0, 1, 't', 'f', 'True', 'False', True, and False particularly compelling and I wouldn't advocate for being even more liberal in the accepted values.
Back to Top