code: def is_match(self, match):
          
          result = False
          if self == match:
              result = True
          elif isinstance(match, str) and fnmatchcase(self.name, match):
              result = True  # Found by instance or name
          return result
docs: Return whether this model is the same as `match`.
  
          Matches if the model is the same as or has the same name as `match`.