Browse Source

Fixed bug in input_field tag

pull/160/head
Mike Olund 8 years ago
parent
commit
17ae31db5f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      edivorce/apps/core/templatetags/input_field.py

+ 1
- 1
edivorce/apps/core/templatetags/input_field.py View File

@ -33,7 +33,7 @@ def input_field(context, type, name='', value='', multiple='', **kwargs):
else: else:
value_list = context.get(name, '') value_list = context.get(name, '')
if value in value_list and value != '':
if value_list is not None and value != '' and value in value_list:
tag.append(' checked') tag.append(' checked')
tag.append('>') tag.append('>')


Loading…
Cancel
Save