[ADD] SETTINGS: Department managers for helpdesk
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user