mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-06-24 11:33:38 +02:00
PEP8 fixups
This commit is contained in:
parent
93934fea46
commit
49aac657a9
@ -411,8 +411,8 @@ def update_ticket(request, ticket_id, public=False):
|
|||||||
# this prevents system from trying to render any template tags
|
# this prevents system from trying to render any template tags
|
||||||
# broken into two stages to prevent changes from first replace being themselves
|
# broken into two stages to prevent changes from first replace being themselves
|
||||||
# changed by the second replace due to conflicting syntax
|
# changed by the second replace due to conflicting syntax
|
||||||
comment = comment.replace('{%','X-HELPDESK-COMMENT-VERBATIM').replace('%}','X-HELPDESK-COMMENT-ENDVERBATIM')
|
comment = comment.replace('{%', 'X-HELPDESK-COMMENT-VERBATIM').replace('%}', 'X-HELPDESK-COMMENT-ENDVERBATIM')
|
||||||
comment = comment.replace('X-HELPDESK-COMMENT-VERBATIM','{% verbatim %}{%').replace('X-HELPDESK-COMMENT-ENDVERBATIM','%}{% endverbatim %}')
|
comment = comment.replace('X-HELPDESK-COMMENT-VERBATIM', '{% verbatim %}{%').replace('X-HELPDESK-COMMENT-ENDVERBATIM', '%}{% endverbatim %}')
|
||||||
# render the neutralized template
|
# render the neutralized template
|
||||||
comment = template_func(comment).render(context)
|
comment = template_func(comment).render(context)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user