docs: def bind(self, field_name, parent):
          """
          Check the model attached to the serializer to see what methods are defined and save them.
          """
          assert parent.Meta.model is not None, \
              "DRYPermissions is used on '{}' without a model".format(parent.__class__.__name__)
  
          for action in self.actions:
  
              if not self.object_only:
                  global_method_name = "has_{action}_permission".format(action=action)
                  if hasattr(parent.Meta.model, global_method_name):
                      self.action_method_map[action] = {'global': global_method_name}
  
              if not self.global_only:
                  object_method_name = "has_object_{action}_permission".format(action=action)
                  if hasattr(parent.Meta.model, object_method_name):
                      if self.action_method_map.get(action, None) is None:
                          self.action_method_map[action] = {}
                      self.action_method_map[action]['object'] = object_method_name
  
          super(DRYPermissionsField, self).bind(field_name, parent)