#NEWLINE# @ register . inclusion_tag ( '_form_item.html' ) #NEWLINE# def form_item( item , additional_classes = None ) : #NEWLINE# #INDENT# '\n    Helper for easy displaying of form items::\n\n        {% for field in form %}{% form_item field %}{% endfor %}\n    ' #NEWLINE# return { #NEWLINE# #INDENT# 'item' : additional_classes , #NEWLINE# 'additional_classes' : additional_classes , #NEWLINE# 'is_checkbox' : isinstance ( item . field . widget , forms . CheckboxInput ) , #NEWLINE# 'type_class' : _type_class ( item ) , #NEWLINE# #UNINDENT# }