From 884383c275c7e6c19a56b47025a143ec8b7c8920 Mon Sep 17 00:00:00 2001 From: Nick Travis Date: Mon, 7 Nov 2022 12:16:01 -0500 Subject: [PATCH] converting from legacy % to f-strings --- wagtail_draftail_snippet/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wagtail_draftail_snippet/utils.py b/wagtail_draftail_snippet/utils.py index 6e2b3fc..4982000 100644 --- a/wagtail_draftail_snippet/utils.py +++ b/wagtail_draftail_snippet/utils.py @@ -1,8 +1,8 @@ def get_snippet_link_frontend_template(app_name, model_name): - return "%s/%s_snippet_link.html" % (app_name, model_name) + return f"{app_name}/{model_name}_snippet_link.html" def get_snippet_embed_frontend_template(app_name, model_name): - return "%s/%s_snippet_embed.html" % (app_name, model_name) + return f"{app_name}/{model_name}_snippet_embed.html"