Changes between Initial Version and Version 1 of Ticket #19349, comment 2
- Timestamp:
- Nov 24, 2012, 9:37:28 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #19349, comment 2
initial v1 1 {{{ 1 2 Environment: 2 3 … … 28 29 object of type 'NoneType' has no len() 29 30 9 : {% for field in line %} 30 31 32 31 10 : <div{% if not line.fields|length_is:'1' %} class="field-box{% if field.field.name %} field-{{ field.field.name }}{% endif %}{% if not field.is_readonly and field.errors %} errors{% endif %}"{% endif %}> 33 34 35 32 11 : {% if not line.fields|length_is:'1' and not field.is_readonly %}{{ field.errors }}{% endif %} 36 37 38 33 12 : {% if field.is_checkbox %} 39 40 41 34 13 : {{ field.field }}{{ field.label_tag }} 42 43 44 35 14 : {% else %} 45 46 47 36 15 : {{ field.label_tag }} 48 49 50 37 16 : {% if field.is_readonly %} 51 52 53 38 17 : <p>{{ field.contents }}</p> 54 55 56 39 18 : {% else %} 57 58 59 40 19 : {{ field.field }} 60 61 62 41 20 : {% endif %} 63 64 65 42 21 : {% endif %} 66 67 68 43 22 : {% if field.field.help_text %} 69 70 71 44 23 : <p class="help">{{ field.field.help_text|safe }}</p> 72 73 74 45 24 : {% endif %} 75 76 77 46 25 : </div> 78 79 80 47 26 : {% endfor %} 81 82 83 48 27 : </div> 84 85 86 49 28 : {% endfor %} 87 88 89 50 29 : </fieldset> 90 91 51 92 52 Traceback: … … 178 138 Exception Type: TypeError at /admin/auth/user/1/ 179 139 Exception Value: object of type 'NoneType' has no len() 140 }}}