From bb40a91ef14abf64b962c8d2305c3d15851b1e20 Mon Sep 17 00:00:00 2001 From: jyf1987 Date: Wed, 11 Jul 2012 14:32:20 +0800 Subject: [PATCH] fix a doubtful bug which caused while there's no deffered functions binded to the blueprint object, and this is the common user case --- flask/blueprints.py | 1 + 1 file changed, 1 insertion(+) diff --git a/flask/blueprints.py b/flask/blueprints.py index 9c557028..4c756002 100644 --- a/flask/blueprints.py +++ b/flask/blueprints.py @@ -144,6 +144,7 @@ class Blueprint(_PackageBoundObject): """ self._got_registered_once = True state = self.make_setup_state(app, options, first_registration) + [setattr(self, k, getattr(state, k)) for k in ('subdomain', 'url_prefix', 'url_defaults')] if self.has_static_folder: state.add_url_rule(self.static_url_path + '/', view_func=self.send_static_file,