Fixed a bug, view_args not values
This commit is contained in:
parent
4d6cd1a390
commit
db28217574
2 changed files with 2 additions and 1 deletions
|
|
@ -23,6 +23,7 @@ from .helpers import url_for, jsonify, json_available, flash, \
|
|||
from .globals import current_app, g, request, session, _request_ctx_stack
|
||||
from .ctx import has_request_context
|
||||
from .module import Module
|
||||
from .blueprints import Blueprint
|
||||
from .templating import render_template, render_template_string
|
||||
from .session import Session
|
||||
|
||||
|
|
|
|||
|
|
@ -1043,7 +1043,7 @@ class Flask(_PackageBoundObject):
|
|||
if bp is not None and bp in self.url_value_preprocessors:
|
||||
funcs = chain(funcs, self.url_value_preprocessors[bp])
|
||||
for func in funcs:
|
||||
func(request.endpoint, request.values)
|
||||
func(request.endpoint, request.view_args)
|
||||
|
||||
funcs = self.before_request_funcs.get(None, ())
|
||||
if bp is not None and bp in self.before_request_funcs:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue