Add email template "merged" thanks to a migration and add merged_to field into the safe ticket context.

This commit is contained in:
bbe
2020-10-30 19:56:38 +01:00
parent 41c1e765c2
commit 5fce1964de
2 changed files with 58 additions and 1 deletions

View File

@ -26,7 +26,7 @@ def ticket_template_context(ticket):
for field in ('title', 'created', 'modified', 'submitter_email',
'status', 'get_status_display', 'on_hold', 'description',
'resolution', 'priority', 'get_priority_display',
'last_escalation', 'ticket', 'ticket_for_url',
'last_escalation', 'ticket', 'ticket_for_url', 'merged_to',
'get_status', 'ticket_url', 'staff_url', '_get_assigned_to'
):
attr = getattr(ticket, field, None)