Changes between Initial Version and Version 4 of Ticket #19537


Ignore:
Timestamp:
Dec 29, 2012, 9:21:58 AM (11 years ago)
Author:
Claude Paroz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19537

    • Property Component UncategorizedForms
  • 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