Make the decorators attribute on View a tuple by default

To discourage accidental runtime modification applying to all views.
This commit is contained in:
Oliver Beattie 2013-09-09 15:13:42 +01:00
parent ff59db16bc
commit bb882454a0

View file

@ -60,7 +60,7 @@ class View(object):
#: view function is created the result is automatically decorated.
#:
#: .. versionadded:: 0.8
decorators = []
decorators = ()
def dispatch_request(self):
"""Subclasses have to override this method to implement the