author | Sverre Rabbelier <srabbelier@gmail.com> |
Sun, 23 Nov 2008 00:44:13 +0000 | |
changeset 576 | 6614d3f545b7 |
parent 575 | ba4a7e90139d |
child 577 | e7cb5819f7e9 |
--- 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)