@classmethod
def find(cls, db, urlname, user=None):
    """Find a Dashboard by urlname.
        Returns None if not found.
        """
    if user is None:
        return db.query(cls).filter(cls.urlname == urlname).first()
    return db.query(cls).filter(cls.urlname == urlname, cls.user_id == user.id
        ).first()
