diff --git a/base/forms.py b/base/forms.py index f94429da6..bea643a0a 100644 --- a/base/forms.py +++ b/base/forms.py @@ -535,7 +535,12 @@ class RotatingWorkTypeAssignForm(ModelForm): model = RotatingWorkTypeAssign fields = "__all__" - exclude = ("next_change_date", "current_work_type", "next_work_type") + exclude = [ + "next_change_date", + "current_work_type", + "next_work_type", + "is_active", + ] widgets = { "start_date": DateInput(attrs={"type": "date"}), "is_active": HiddenInput(), diff --git a/base/templates/shift_request/shift_request_view.html b/base/templates/shift_request/shift_request_view.html index 65dad0f09..6379f03e5 100644 --- a/base/templates/shift_request/shift_request_view.html +++ b/base/templates/shift_request/shift_request_view.html @@ -1,17 +1,20 @@ -{% extends "index.html" %} -{% block content %} -{% load i18n %} -{% load basefilters %} -{% load attendancefilters %} +{% extends "index.html" %} {% block content %} {% load i18n %} +{% load basefilters %} {% load attendancefilters %} {% include 'shift_request/shift_request_nav.html' %} -