This is wrongly indented (it's under middlewares, instead of edit_attributes)