@classmethod
def get_where(cls, *clauses):
    """
        Returns the instance of this class matching the given clause(s) or None
        if there is no record matching the criteria.

        If multiple records are returned, an exception is raised.
        """
    return cls.query.filter(*clauses).one_or_none()
