From 56b7f53c51bd7f7132feb29e490df37f884578af Mon Sep 17 00:00:00 2001 From: Bruno Tikami Date: Sat, 20 Feb 2016 17:46:03 -0200 Subject: [PATCH] CLEANUP: Removing necessary code from feature 2 --- helpdesk/models.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/helpdesk/models.py b/helpdesk/models.py index 12bb8b74..42d7ef2b 100644 --- a/helpdesk/models.py +++ b/helpdesk/models.py @@ -428,24 +428,6 @@ class Ticket(models.Model): 'automatically by management/commands/escalate_tickets.py.'), ) - def __init__(self, *args, **kwargs): - - # Separate RFC 2822 (email) exclusive fields for later processing - self.rfc_2822_items = {} - - for field, value in kwargs.iteritems(): - if field.startswith('rfc_2822'): - self.rfc_2822_items[field] = value - - # Submitter Message-Id is an exception here, since it's a attribute - 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) - - super(Ticket, self).__init__(*args, **kwargs) - def _get_assigned_to(self): """ Custom property to allow us to easily print 'Unassigned' if a ticket has no owner, or the users name if it's assigned. If the user