code: def user_model_attributes(user, service):
      
      ignore_fields = ['id', 'password']
      attributes = {}
      for field in user._meta.fields:
          if field.name not in ignore_fields:
              attributes[field.name] = getattr(user, field.name)
      return attributes
docs: Return all fields on the user object that are not in the list
      of fields to ignore.