Browse Source

Make the decorators attribute on View a tuple by default

To discourage accidental runtime modification applying to all views.
pull/864/head
Oliver Beattie 11 years ago
parent
commit
bb882454a0
  1. 2
      flask/views.py

2
flask/views.py

@ -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

Loading…
Cancel
Save