Browse Source

Merge pull request #79 from ariannedee/master

Fix some Python3.6 syntax so it works in 3.5
pull/160/head
Michael Olund 5 years ago
committed by GitHub
parent
commit
3c76555b22
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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

@ -63,7 +63,7 @@ def input_field(context, type, name='', value='', multiple='', **kwargs):
""" """
Usage: when specifying data attributes in templates, use "data_" instead of "data-". Usage: when specifying data attributes in templates, use "data_" instead of "data-".
""" """
error = context.get(f'{name}_error', False)
error = context.get(name + '_error', False)
if error: if error:
if 'class' in kwargs: if 'class' in kwargs:
kwargs['class'] += ' error' kwargs['class'] += ' error'


Loading…
Cancel
Save