def METHOD_NAME(self, filter_dict):
    """Set the filter of this model based on a string.
    :param filter_dict: Dictionary to do the filtering by.
    """
    self._filter_dict = filter_dict
    self._update()