pytask/taskapp/views.py
changeset 125 9b0812962133
parent 124 070f01dd7d8e
child 127 32457bce3437
equal deleted inserted replaced
124:070f01dd7d8e 125:9b0812962133
   243                     uid = form.cleaned_data['choice']
   243                     uid = form.cleaned_data['choice']
   244                     selected_user = User.objects.get(id=uid)
   244                     selected_user = User.objects.get(id=uid)
   245 
   245 
   246                     task.selected_users.add(selected_user)
   246                     task.selected_users.add(selected_user)
   247                     task.claimed_users.remove(selected_user)
   247                     task.claimed_users.remove(selected_user)
       
   248                     task.status = "WR"
   248                     task.save()
   249                     task.save()
   249 
   250 
   250                     return redirect(task_url)
   251                     return redirect(task_url)
   251                 else:
   252                 else:
   252                     context.update({"form": form})
   253                     context.update({"form": form})