code: def author_structure(user):
      
      return {'user_id': user.pk,
              'user_login': user.get_username(),
              'display_name': user.__str__(),
              'user_email': user.email}
docs: An author structure.