taskapp/views/task.py
changeset 177 4a7206176345
parent 176 13ceb76fd0a3
child 179 8d1fdb148c27
equal deleted inserted replaced
176:13ceb76fd0a3 177:4a7206176345
   150                     return redirect(task_url)
   150                     return redirect(task_url)
   151                 else:
   151                 else:
   152                     return render_to_response('task/create.html',{'user':user, 'form':form})
   152                     return render_to_response('task/create.html',{'user':user, 'form':form})
   153             else:
   153             else:
   154                 form = TaskCreateForm()
   154                 form = TaskCreateForm()
   155                 return render_to_response('task/create.html',{'form':form})
   155                 return render_to_response('task/create.html',{'user':user, 'form':form})
   156         else:
   156         else:
   157             return show_msg(user, 'You are not authorised to create a task.')
   157             return show_msg(user, 'You are not authorised to create a task.')
   158     else:
   158     else:
   159         return show_msg(user, 'You are not authorised to create a task.')
   159         return show_msg(user, 'You are not authorised to create a task.')
   160         
   160