Update patterns.rst

in the context menu example the url_for function was pointing to a non existing function.