'Sets .author to current user and .sender to user\'s Contact (if available)'

def set_user_from_request(self, request):

    user = request.user.profile
    self.author = user
    self.recipients.add(user)
    contact = user.get_contact()
    if contact:
        self.sender = contact
    self.save()
