Replace create template with edit template.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Sun, 16 Jan 2011 20:56:58 +0530
changeset 429 288ce2de2172
parent 428 c9d8cd54195e
child 430 a11a778fca54
Replace create template with edit template.
pytask/taskapp/views.py
--- a/pytask/taskapp/views.py	Sun Jan 16 20:55:31 2011 +0530
+++ b/pytask/taskapp/views.py	Sun Jan 16 20:56:58 2011 +0530
@@ -46,11 +46,11 @@
             else:
                 context.update({'form':form})
                 return shortcuts.render_to_response(
-                  'task/create.html', context)
+                  'task/edit.html', context)
         else:
             form = taskapp_forms.CreateTaskForm()
             context.update({'form': form})
-            return shortcuts.render_to_response('task/create.html', context)
+            return shortcuts.render_to_response('task/edit.html', context)
     else:
         return show_msg(user, 'You are not authorised to create a task.')