Browse Source

f string syntax only supported in python 3.6 or later but build server and other infrastructure on python 3.5 so revert behaviour

pull/160/head
Benard Ebinu 8 years ago
parent
commit
87a9aa465e
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

@ -72,7 +72,7 @@ def input_field(context, type, name='', value='', multiple='', **kwargs):
if 'date-picker' in kwargs.get('class', ''): # DIV-573
try:
date = datetime.strptime(value, '%d/%m/%Y')
value = f'{date:%b} {date.day}, {date:%Y}'
value = date.strftime('%b %d, %Y')
if context['request'].user.is_authenticated():
UserResponse.objects.filter(
bceid_user=context['request'].user, question=name


Loading…
Cancel
Save