Changes between Initial Version and Version 1 of Ticket #19537, comment 2


Ignore:
Timestamp:
Dec 29, 2012, 9:23:41 AM (12 years ago)
Author:
Claude Paroz

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19537, comment 2

    initial v1  
    44
    55# View is
    6 
     6{{{
    77def document(request, project_id, document_id):
    88        u''' Карточка документа '''
     
    2020       
    2121        return render(request, 'docflow/document.html', {'form':f})
     22}}}
    2223
    2324# Template is
     25{{{
    2426<html>
    2527<body>
     
    3133</body>
    3234</html>         
     35}}}
    3336
    3437# action1
     
    3740- check checkbox and send form (change!)
    3841- print to console is "[]"
    39   CheckboxInput._has_changed arg "initial" == u'False' (not bool False) bool(u'False') == True of course,
    40   but arg "data" == u'on' bool(u'on') == True too
     42  CheckboxInput._has_changed arg "initial" == u'False' (not bool False) bool(u'False') == True of course, [[BR]]
     43  but arg "data" == u'on' bool(u'on') == True too  [[BR]]
    4144  True != True => False
    4245
     
    4750- send form
    4851- print to console is "['bool_field']"
    49   CheckboxInput._has_changed arg "initial" == u'False' too bool(u'False') => True,
    50   but arg "data" == False bool(False) == False
     52  CheckboxInput._has_changed arg "initial" == u'False' too bool(u'False') => True,  [[BR]]
     53  but arg "data" == False bool(False) == False [[BR]]
    5154  widget _has_changed => true
    5255
Back to Top