forked from extern/django-helpdesk
Merge pull request #793 from askvortsov1/master
Fixed syntax error in escalate_tickets.py
This commit is contained in:
commit
66eef0a6b1
@ -105,7 +105,7 @@ def escalate_tickets(queues, verbose):
|
|||||||
t.send(
|
t.send(
|
||||||
{'submitter': ('escalated_submitter', context),
|
{'submitter': ('escalated_submitter', context),
|
||||||
'ticket_cc': ('escalated_cc', context),
|
'ticket_cc': ('escalated_cc', context),
|
||||||
'assigned_to': ('escalated_owner', context)}
|
'assigned_to': ('escalated_owner', context)},
|
||||||
fail_silently=True,
|
fail_silently=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -46,8 +46,8 @@ class DatatablesTicketSerializer(serializers.ModelSerializer):
|
|||||||
|
|
||||||
def get_assigned_to(self, obj):
|
def get_assigned_to(self, obj):
|
||||||
if obj.assigned_to:
|
if obj.assigned_to:
|
||||||
if obj.assigned_to.first_name:
|
if obj.assigned_to.get_full_name():
|
||||||
return (obj.assigned_to.first_name)
|
return (obj.assigned_to.get_full_name())
|
||||||
else:
|
else:
|
||||||
return (obj.assigned_to.email)
|
return (obj.assigned_to.email)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user