From a032d0577fa764bbb6803ff5dbaae4d87473076a Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Thu, 22 Sep 2022 15:47:51 -0400 Subject: [PATCH] Inline default body string. --- writing.py | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/writing.py b/writing.py index 5c4a2a7..2b8c0d8 100644 --- a/writing.py +++ b/writing.py @@ -47,19 +47,18 @@ class CLForm(Form): default="I look forward to hearing from you" ) - body_string = ( - "My name is {\\username}. I'm excited for the opportunity to work as " - "{\\jobandpronoun} with your company. I think my {\\skilltypes} knowledge " - "of {\\myskills} can contribute a lot to your team.\n\n" - - "I am passionate about what I do, and I think we would work well together.\n\n" - - "Thank you for your consideration." - ) body = TextAreaField( 'Body:', [validators.Length(min=4, max=9999)], - default=body_string + default=( + "My name is {\\username}. I'm excited for the opportunity to work as " + "{\\jobandpronoun} with your company. I think my {\\skilltypes} knowledge " + "of {\\myskills} can contribute a lot to your team.\n\n" + + "I am passionate about what I do, and I think we would work well together.\n\n" + + "Thank you for your consideration." + ) )