From 0352c773069be0c8084018a0ffa70918d057c2bd Mon Sep 17 00:00:00 2001
From: Carlos Vega <carlos.vega@uni.lu>
Date: Wed, 3 Oct 2018 14:55:58 +0200
Subject: [PATCH] changed model to add different kinds of availabilities. Issue
 #241

---
 smash/web/views/worker.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/smash/web/views/worker.py b/smash/web/views/worker.py
index 6e7077c0..f5081609 100644
--- a/smash/web/views/worker.py
+++ b/smash/web/views/worker.py
@@ -6,7 +6,7 @@ from django.shortcuts import redirect, get_object_or_404
 from web.forms import AvailabilityAddForm, AvailabilityEditForm, HolidayAddForm
 from web.forms import WorkerForm
 from web.models import Worker, Availability, Holiday
-from web.models.constants import WEEKDAY_CHOICES, GLOBAL_STUDY_ID
+from web.models.constants import WEEKDAY_CHOICES, GLOBAL_STUDY_ID, AVAILABILITY_CHOICES
 from web.models.worker import worker_type_by_worker
 from web.models.worker_study_role import WORKER_STAFF
 from . import wrap_response
@@ -55,6 +55,7 @@ def worker_edit(request, worker_id):
                              'holidays': holidays,
                              'doctor_id': worker_id,
                              'weekdays': WEEKDAY_CHOICES,
+                             'availability_choices': AVAILABILITY_CHOICES,
                              "worker_type": worker_type
                          })
 
-- 
GitLab