From f6eaa26c16eab84c8123a2760dcf9272f4dde0fd Mon Sep 17 00:00:00 2001 From: Johannes Hoppe Date: Sun, 5 Aug 2018 11:33:44 +0200 Subject: [PATCH] Fix #493 -- Fix Python 3.5 compatibility Ref 1954bf57fafee0f27a7b444b1a468331ac2af9b3 --- django_select2/conf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/django_select2/conf.py b/django_select2/conf.py index df0a34d..294f5b5 100644 --- a/django_select2/conf.py +++ b/django_select2/conf.py @@ -56,7 +56,7 @@ class Select2Conf(AppConf): It has set `select2_` as a default value, which you can change if needed. """ - JS = f'//cdnjs.cloudflare.com/ajax/libs/select2/{LIB_VERSION}/js/select2.min.js' + JS = '//cdnjs.cloudflare.com/ajax/libs/select2/{version}/js/select2.min.js'.format(version=LIB_VERSION) """ The URI for the Select2 JS file. By default this points to the Cloudflare CDN. @@ -74,7 +74,7 @@ class Select2Conf(AppConf): develop without an Internet connection. """ - CSS = f'//cdnjs.cloudflare.com/ajax/libs/select2/{LIB_VERSION}/css/select2.min.css' + CSS = '//cdnjs.cloudflare.com/ajax/libs/select2/{version}/css/select2.min.css'.format(version=LIB_VERSION) """ The URI for the Select2 CSS file. By default this points to the Cloudflare CDN. @@ -92,7 +92,7 @@ class Select2Conf(AppConf): develop without an Internet connection. """ - I18N_PATH = f'//cdnjs.cloudflare.com/ajax/libs/select2/{LIB_VERSION}/js/i18n' + I18N_PATH = '//cdnjs.cloudflare.com/ajax/libs/select2/{version}/js/i18n'.format(version=LIB_VERSION) """ The base URI for the Select2 i18n files. By default this points to the Cloudflare CDN.