@@ -332,14 +332,18 @@ def send_new_case(cls, case):
332332 return letter
333333
334334 def _email_context (self ):
335- body = self .body .replace ("{{EMAIL}}" , self .case .email )
336- body = self .body .replace ("{{ADRESAT}}" , self .case .institution .name )
337- html_body = self .html_body .replace ("{{EMAIL}}" , self .case .email )
338- html_body = self .html_body .replace ("{{ADRESAT}}" , self .case .institution .name )
339- quote = self .quote .replace ("{{EMAIL}}" , self .case .email )
340- quote = quote .replace ("{{ADRESAT}}" , self .case .institution .name )
341- html_quote = self .html_quote .replace ("{{EMAIL}}" , self .case .email )
342- html_quote = self .html_quote .replace ("{{ADRESAT}}" , self .case .institution .name )
335+ body = self .body .replace ("{{EMAIL}}" , self .case .email ).replace (
336+ "{{ADRESAT}}" , self .case .institution .name
337+ )
338+ html_body = self .html_body .replace ("{{EMAIL}}" , self .case .email ).replace (
339+ "{{ADRESAT}}" , self .case .institution .name
340+ )
341+ quote = self .quote .replace ("{{EMAIL}}" , self .case .email ).replace (
342+ "{{ADRESAT}}" , self .case .institution .name
343+ )
344+ html_quote = self .html_quote .replace ("{{EMAIL}}" , self .case .email ).replace (
345+ "{{ADRESAT}}" , self .case .institution .name
346+ )
343347 context = {
344348 "html_body" : mark_safe (html_body ),
345349 "text_body" : mark_safe (body ),
0 commit comments