Skip to content

Commit

Permalink
Merge pull request #793 from askvortsov1/master
Browse files Browse the repository at this point in the history
Fixed syntax error in escalate_tickets.py
  • Loading branch information
gwasser committed Jan 7, 2020
2 parents c143cb3 + 377e1c3 commit 66eef0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion helpdesk/management/commands/escalate_tickets.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def escalate_tickets(queues, verbose):
t.send(
{'submitter': ('escalated_submitter', context),
'ticket_cc': ('escalated_cc', context),
'assigned_to': ('escalated_owner', context)}
'assigned_to': ('escalated_owner', context)},
fail_silently=True,
)

Expand Down
4 changes: 2 additions & 2 deletions helpdesk/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def get_due_date(self, obj):

def get_assigned_to(self, obj):
if obj.assigned_to:
if obj.assigned_to.first_name:
return (obj.assigned_to.first_name)
if obj.assigned_to.get_full_name():
return (obj.assigned_to.get_full_name())
else:
return (obj.assigned_to.email)
else:
Expand Down

0 comments on commit 66eef0a

Please sign in to comment.