[ADD] LEAVE: Comment for leave request views

This commit is contained in:
Horilla
2024-01-15 10:15:58 +05:30
parent d25f839124
commit 3e3183cfcf
11 changed files with 483 additions and 3 deletions

View File

@@ -19,6 +19,7 @@ from .models import (
Holiday,
CompanyLeave,
LeaveAllocationRequest,
LeaverequestComment,
)
from .methods import (
calculate_requested_days,
@@ -792,3 +793,16 @@ class AssignLeaveForm(HorillaForm):
),
self.fields['leave_type_id'].label = "Leave Type"
class LeaverequestcommentForm(ModelForm):
"""
LeaverequestComment form
"""
class Meta:
"""
Meta class for additional options
"""
model = LeaverequestComment
fields = ('comment',)