Changes between Initial Version and Version 11 of Ticket #20182
- Timestamp:
- May 26, 2013, 9:40:46 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #20182
- Property Cc added
- Property Triage Stage Unreviewed → Ready for checkin
-
Ticket #20182 – Description
initial v11 2 2 3 3 In this function, there is a clause 4 4 {{{ 5 5 if value.lower() in ('', 'false'): 6 6 value = False 7 7 }}} 8 8 I think it should be 9 9 {{{ 10 10 if value.lower() in ('', 'false', '0'): 11 11 value = False 12 12 }}} 13 13 Note that in admin already converts a limit_choices_to={'a__isnull': False} to a__isnull=0 when formatting a query string for lookup on the remote model. Therefore, clearly it should also handle isnull=0 correctly. Currently the lookup popup box on remote model uses __isnull=0 and does not actually filter. 14 14 15 See the following pull request 16 17 https://github.com/django/django/pull/982 18 19 20 21 15 See the following pull request: https://github.com/django/django/pull/982