def talk_type(talk):
    """ Return the pretty name for the type of the talk."""
    if talk.admin_type:
        typ = talk.get_admin_type_display()
    else:
        typ = talk.get_type_display()
    return typ