diff --git a/hydra_base/lib/template/resource.py b/hydra_base/lib/template/resource.py
index <HASH>..<HASH> 100644
--- a/hydra_base/lib/template/resource.py
+++ b/hydra_base/lib/template/resource.py
@@ -113,6 +113,7 @@ def _get_type(type_id):
             .filter(Template.id == type_i.template_id).one()
 
     type_i = template_i.get_type(type_id)
+    type_i.template = JSONObject(template_i)
 
     return type_i
#<I>: When calling _get_type, return the parent template in the type obeject when the type is from an inherited template