Update custom_contraint.rst to meet the new 2.5 api