app/soc/views/models/base.py
changeset 576 6614d3f545b7
parent 573 1b37588c4922
child 586 a4a36b06a870
--- a/app/soc/views/models/base.py	Sun Nov 23 00:38:35 2008 +0000
+++ b/app/soc/views/models/base.py	Sun Nov 23 00:44:13 2008 +0000
@@ -504,7 +504,10 @@
     context['entity_type_short'] = params['name_short']
     context['entity_type_url'] = params['url_name']
 
-    template = params['edit_template']
+    if entity:
+      template = params['edit_template']
+    else:
+      template = params['create_template']
 
     return helper.responses.respond(request, template, context)