def get(self):
        user = g.user
        query = apply_rules_blueprint_templates(user)
        query = query.order_by(BlueprintTemplate.name)
        results = []
        for blueprint_template in query.all():
            plugin = Plugin.query.filter_by(id=blueprint_template.plugin).first()
            blueprint_template.schema = plugin.schema
            blueprint_template.form = plugin.form
            # Due to immutable nature of config field, whole dict needs to be reassigned.
            # Issue #444 in github
            blueprint_template_config = blueprint_template.config
            blueprint_template_config['name'] = blueprint_template.name
            blueprint_template.config = blueprint_template_config

            results.append(blueprint_template)
        return results