[UPDT] LEAVE: More fields to leave filters

This commit is contained in:
Horilla
2023-11-27 22:01:47 +05:30
parent 5735504b77
commit f0d97f1589
4 changed files with 100 additions and 57 deletions

View File

@@ -11,7 +11,6 @@ from employee.models import Employee
from horilla_widgets.forms import HorillaForm
from horilla_widgets.widgets.horilla_multi_select_field import HorillaMultiSelectField
from horilla_widgets.widgets.select_widgets import HorillaMultiSelectWidget
from leave.filters import LeaveTypeFilter
from .models import (
LeaveType,
LeaveRequest,
@@ -736,7 +735,6 @@ class AssignLeaveForm(HorillaForm):
# )
def clean(self):
print("///////////////////////////////")
cleaned_data = super().clean()
employee_id = cleaned_data.get("employee_id")
leave_type_id = cleaned_data.get("leave_type_id")