'Raise an error if `user` is not an admin.
:raises exceptions.AdminRequiredException: if `user` is not an admin.'

def error_unless_admin(self, user, msg='Administrators    only', **kwargs):

    if (not self.is_admin(user)):
        raise exceptions.AdminRequiredException(msg, **kwargs)
    return user
