forked from orbit-oss/flask
Make the decorators attribute on View a tuple by default
To discourage accidental runtime modification applying to all views.
This commit is contained in:
parent
ff59db16bc
commit
bb882454a0
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ class View(object):
|
||||||
#: view function is created the result is automatically decorated.
|
#: view function is created the result is automatically decorated.
|
||||||
#:
|
#:
|
||||||
#: .. versionadded:: 0.8
|
#: .. versionadded:: 0.8
|
||||||
decorators = []
|
decorators = ()
|
||||||
|
|
||||||
def dispatch_request(self):
|
def dispatch_request(self):
|
||||||
"""Subclasses have to override this method to implement the
|
"""Subclasses have to override this method to implement the
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue