From 87a9aa465eafd9ae037248fc571047f1acdfec94 Mon Sep 17 00:00:00 2001 From: Benard Ebinu Date: Fri, 22 Dec 2017 15:49:31 -0800 Subject: [PATCH] f string syntax only supported in python 3.6 or later but build server and other infrastructure on python 3.5 so revert behaviour --- edivorce/apps/core/templatetags/input_field.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edivorce/apps/core/templatetags/input_field.py b/edivorce/apps/core/templatetags/input_field.py index 5aabb137..66ebcad1 100644 --- a/edivorce/apps/core/templatetags/input_field.py +++ b/edivorce/apps/core/templatetags/input_field.py @@ -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