'This lets us use a user\'s username to pull favourite dashboards'

@api
@has_access_api
@expose(u'/fave_dashboards_by_username/<username>/', methods=[u'GET'])
def fave_dashboards_by_username(self, username):

    user = sm.find_user(username=username)
    return self.fave_dashboards(user.get_id())
