[ADD] SETTINGS: Department managers for helpdesk

This commit is contained in:
Horilla
2024-01-09 10:32:18 +05:30
parent 44171526f6
commit b8267b7f50
9 changed files with 261 additions and 15 deletions

View File

@@ -23,7 +23,7 @@ class YourForm(forms.Form):
from base.forms import ModelForm
from base.models import Department, JobPosition
from employee.models import Employee
from helpdesk.models import Attachment, TicketType, FAQ,Ticket, FAQCategory, Comment
from helpdesk.models import Attachment, DepartmentManager, TicketType, FAQ,Ticket, FAQCategory, Comment
from django import forms
from django.template.loader import render_to_string
@@ -162,4 +162,10 @@ class AttachmentForm(forms.ModelForm):
}), label = "")
class Meta:
model = Attachment
fields = ['file','comment','ticket']
fields = ['file','comment','ticket']
class DepartmentManagerCreateForm(ModelForm):
class Meta:
model = DepartmentManager
fields = ["department", "manager"]