'Gets the line to put into commits to attribute the author.
Returns a tuple (name, email)'

def get_contribution_details(self):

    if (self.user.first_name and self.user.last_name):
        name = ('%s    %s' % (self.user.first_name, self.user.last_name))
    else:
        name = self.user.username
    if self.allow_email:
        email = self.user.email
    else:
        email = STANDARD_EMAIL
    return (name, email)
