Changes between Initial Version and Version 1 of Ticket #19537, comment 2
- Timestamp:
- Dec 29, 2012, 9:23:41 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #19537, comment 2
initial v1 4 4 5 5 # View is 6 6 {{{ 7 7 def document(request, project_id, document_id): 8 8 u''' Карточка документа ''' … … 20 20 21 21 return render(request, 'docflow/document.html', {'form':f}) 22 }}} 22 23 23 24 # Template is 25 {{{ 24 26 <html> 25 27 <body> … … 31 33 </body> 32 34 </html> 35 }}} 33 36 34 37 # action1 … … 37 40 - check checkbox and send form (change!) 38 41 - 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]] 41 44 True != True => False 42 45 … … 47 50 - send form 48 51 - 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]] 51 54 widget _has_changed => true 52 55