This can cause a problem if the show template is rendered when handling a validation error, because request.path will be the path the form was submitted to, and not the path the form was originally displayed on. Construct a correct path that will be valid in both cases.