equal
deleted
inserted
replaced
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}) |