diff --git a/base/forms.py b/base/forms.py index c0321f1f7..ca76e97ee 100644 --- a/base/forms.py +++ b/base/forms.py @@ -1439,16 +1439,7 @@ class EmployeeShiftScheduleForm(ModelForm): """ model = EmployeeShiftSchedule - fields = [ - "shift_id", - "minimum_working_hour", - "start_time", - "end_time", - "is_auto_punch_out_enabled", - "auto_punch_out_time", - "company_id", - "day", - ] + fields = "__all__" exclude = ["is_active", "day", "is_night_shift"] widgets = { "start_time": forms.TimeInput(), diff --git a/employee/templates/tabs/personal_tab.html b/employee/templates/tabs/personal_tab.html index 30fab7553..74248e671 100644 --- a/employee/templates/tabs/personal_tab.html +++ b/employee/templates/tabs/personal_tab.html @@ -23,7 +23,7 @@ {% trans "Gender" %} - {% trans employee.get_gender_display %} + {{employee.get_gender_display}}