Skip to content
Snippets Groups Projects
Commit 0352c773 authored by Carlos Vega's avatar Carlos Vega
Browse files

changed model to add different kinds of availabilities. Issue #241

parent 15ff974e
No related branches found
No related tags found
1 merge request!171Feature/daily availability
......@@ -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
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment