diff --git a/attendance/models.py b/attendance/models.py index f16ff0d64..8f77888ab 100644 --- a/attendance/models.py +++ b/attendance/models.py @@ -145,7 +145,7 @@ class Attendance(HorillaModel): WorkType, null=True, blank=True, - on_delete=models.DO_NOTHING, + on_delete=models.SET_NULL, # 796 verbose_name=_("Work Type"), ) attendance_day = models.ForeignKey( diff --git a/attendance/templates/attendance/attendance/tab_content.html b/attendance/templates/attendance/attendance/tab_content.html index 9896059a3..602989127 100644 --- a/attendance/templates/attendance/attendance/tab_content.html +++ b/attendance/templates/attendance/attendance/tab_content.html @@ -49,7 +49,7 @@
-
@@ -58,7 +58,7 @@ hx-target="#tab_contents"> {% trans "Employee" %}
-
@@ -80,16 +80,15 @@ {% trans "In Date" %}
- {% trans - "Check-Out" %}
+ {% trans "Check-Out" %}
{% trans "Out Date" %}
-
{% trans "Shift" - %}
+
+ {% trans "Shift" %}
{% trans "Work Type" %}