'Automatically set ticket reference and send message to caller'

def save(self, *args, **kwargs):

    super(Ticket, self).save(*args, **kwargs)
    if (not self.reference):
        if self.queue:
            self.reference = (self.queue.ticket_code + str(self.id))
        else:
            self.reference = str(self.id)
        self.save()
