Changes between Initial Version and Version 4 of Ticket #19537


Ignore:
Timestamp:
12/29/2012 09:21:58 AM (3 years ago)
Author:
claudep
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19537

    • Property Patch needs improvement unset
    • Property Component changed from Uncategorized to Forms
    • Property Needs tests unset
    • Property Needs documentation unset
  • Ticket #19537 – Description

    initial v4  
    1 django.forms.CheckboxInput
    2 
    3 have method
    4 
     1`django.forms.CheckboxInput` have method
     2{{{
    53def _has_changed(self, initial, data):
    64    # Sometimes data or initial could be None or u'' which should be the
    75    # same thing as False.
    86    return bool(initial) != bool(data)
    9 
     7}}}
    108initial may be u'False' or u'True'
    119bool(initial) always return True for unicode len(initial) > 1
     
    1513bool(u'on') = True
    1614path:
     15{{{
    1716def _has_changed(self, initial, data):
    1817    initial = True if initial == u'True' else False
    1918    return initial != bool(data)
     19}}}
Back to Top