Added unique related_name “usersetttings_helpdesk” for the one-to-one relation to User in UserSettings.

This commit is contained in:
Alex Seeholzer
2017-01-13 15:14:23 +01:00
parent 9fbe464445
commit 4e018db5a6
4 changed files with 11 additions and 9 deletions

View File

@ -253,7 +253,7 @@ class AbstractTicketForm(CustomFieldMixin, forms.Form):
if ticket.assigned_to and \
ticket.assigned_to != user and \
ticket.assigned_to.usersettings.settings.get('email_on_ticket_assign', False) and \
ticket.assigned_to.usersettings_helpdesk.settings.get('email_on_ticket_assign', False) and \
ticket.assigned_to.email and \
ticket.assigned_to.email not in messages_sent_to:
send_templated_mail(