title: Django - How to stay on the same page without refreshing page?
body: <p>I am using Boostrap modal fade window which renders Django form to update my database records. And what I fail to do is not to reload the page if the user has opened the Update window and did not change anything. It will be easier to get my idea if you look at the code below:</p>
  
  <pre><code>def updateTask(request, task_id):
      #cur_usr_sale_point = PersonUnique.objects.filter(employees__employeeuser__auth_user = request.user.id).values_list('agreementemployees__agreement_unique__sale_point_id',flat=True)
      selected_task = Tasks.objects.get(id=task_id)    
      task_form = TaskForm(instance=selected_task )
      taskTable = Tasks.objects.all()
      if request.method == 'POST':
          task_form = TaskForm(request.POST,instance=selected_task)
          if task_form.has_changed():
              if task_form.is_valid():
                  # inside your model instance add each field with the wanted value for it
                  task_form.save();
                  return HttpResponseRedirect('/task_list/')   
          else: # The user did not change any data but I still tell Django to                 
                #reload my page, thus wasting my time.
               return HttpResponseRedirect('/task_list/') 
      return render_to_response('task_management/task_list.html',{'createTask_form':task_form, 'task_id': task_id, 'taskTable': taskTable},context_instance=RequestContext(request))
  </code></pre>
  
  <p>The question is, is there any way to tell Django to change the url (like it happens after redirecting) but not to load the same page with same data for the second time?</p>