mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-06-19 17:18:23 +02:00
UPDATED: Set "submitter_email_id" as the standard to reference the Message-Id email field.
This commit is contained in:
parent
ea3c3732e5
commit
cea4cb2c6a
@ -447,8 +447,8 @@ class Ticket(models.Model):
|
||||
self.rfc_2822_items[field] = value
|
||||
|
||||
# Submitter Message-Id is an exception here, since it's a <Ticket> attribute
|
||||
if 'rfc_2822_message_id' in kwargs:
|
||||
kwargs['submitter_message_id'] = value
|
||||
if 'rfc_2822_submitter_email_id' in kwargs:
|
||||
kwargs['submitter_email_id'] = kwargs['rfc_2822_submitter_email_id']
|
||||
|
||||
for field in self.rfc_2822_items.iterkeys():
|
||||
kwargs.pop(field)
|
||||
|
@ -50,7 +50,7 @@ class TicketBasicsTestCase(TestCase):
|
||||
|
||||
message_id = uuid.uuid4().hex
|
||||
|
||||
self.ticket_data['rfc_2822_message-id'] = message_id
|
||||
self.ticket_data['rfc_2822_submitter_email_id'] = message_id
|
||||
|
||||
email_count = len(mail.outbox)
|
||||
ticket_data = dict(queue=self.queue_public, **self.ticket_data)
|
||||
|
Loading…
x
Reference in New Issue
Block a user