[chronojump-server] Minor changes
- From: Max Ros i Morejon <maxros src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump-server] Minor changes
- Date: Thu, 11 Jul 2019 10:20:41 +0000 (UTC)
commit d3a9ca5311676825d57638ab0e37e39e14b080b2
Author: Max Ros i Morejon <mros33 gmail com>
Date: Thu Jul 11 12:20:35 2019 +0200
Minor changes
chronojumpserver-django/chronojump_networks/tasks/api/views.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/chronojumpserver-django/chronojump_networks/tasks/api/views.py
b/chronojumpserver-django/chronojump_networks/tasks/api/views.py
index 2ff66d6..619f2c3 100644
--- a/chronojumpserver-django/chronojump_networks/tasks/api/views.py
+++ b/chronojumpserver-django/chronojump_networks/tasks/api/views.py
@@ -67,7 +67,7 @@ class TaskRetrieveUpdateDestroyAPIView(RetrieveUpdateDestroyAPIView):
print("HI THERE!")
data = dict(request.data)
o = get_object_or_404(Task, id=self.kwargs['task_id'])
- o.person_id = int(data['personId'][0])
+ o.person_id = int(data['personId[]'][0])
o.coach_id = int(data['coachId'][0])
o.gym_id = int(data['gymId'][0])
o.station_id = int(data['stationId'][0])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]