helpdesk.views module¶
-
class
helpdesk.views.
HelpdeskView
(**kwargs)[source]¶ Bases:
django.contrib.auth.mixins.LoginRequiredMixin
,django.views.generic.list.ListView
-
model
¶ alias of
helpdesk.models.Ticket
-
template_name
= 'helpdesk/helpdesk.html'¶
-
-
class
helpdesk.views.
QueueCreateView
(**kwargs)[source]¶ Bases:
scipost.mixins.PermissionsMixin
,django.views.generic.edit.CreateView
Add a new Queue. Accessible to users with permission: can_add_queue.
-
permission_required
= 'helpdesk.add_queue'¶
-
model
¶ alias of
helpdesk.models.Queue
-
form_class
¶ alias of
helpdesk.forms.QueueForm
-
template_name
= 'helpdesk/queue_form.html'¶
-
-
class
helpdesk.views.
QueueUpdateView
(**kwargs)[source]¶ Bases:
guardian.mixins.PermissionRequiredMixin
,django.views.generic.edit.UpdateView
-
permission_required
= 'helpdesk.can_manage_queue'¶
-
model
¶ alias of
helpdesk.models.Queue
-
form_class
¶ alias of
helpdesk.forms.QueueForm
-
template_name
= 'helpdesk/queue_form.html'¶
-
-
class
helpdesk.views.
QueueDeleteView
(**kwargs)[source]¶ Bases:
guardian.mixins.PermissionRequiredMixin
,django.views.generic.edit.DeleteView
-
permission_required
= 'helpdesk.can_manage_queue'¶
-
model
¶ alias of
helpdesk.models.Queue
-
success_url
= '/helpdesk/'¶
-
-
class
helpdesk.views.
QueueDetailView
(**kwargs)[source]¶ Bases:
guardian.mixins.PermissionRequiredMixin
,django.views.generic.detail.DetailView
-
permission_required
= 'helpdesk.can_view_queue'¶
-
model
¶ alias of
helpdesk.models.Queue
-
template_name
= 'helpdesk/queue_detail.html'¶
-
-
class
helpdesk.views.
TicketCreateView
(**kwargs)[source]¶ Bases:
django.contrib.auth.mixins.LoginRequiredMixin
,django.views.generic.edit.CreateView
-
model
¶ alias of
helpdesk.models.Ticket
-
form_class
¶ alias of
helpdesk.forms.TicketForm
-
template_name
= 'helpdesk/ticket_form.html'¶
-
-
class
helpdesk.views.
TicketUpdateView
(**kwargs)[source]¶ Bases:
django.contrib.auth.mixins.UserPassesTestMixin
,django.views.generic.edit.UpdateView
-
model
¶ alias of
helpdesk.models.Ticket
-
form_class
¶ alias of
helpdesk.forms.TicketForm
-
template_name
= 'helpdesk/ticket_form.html'¶
-
-
class
helpdesk.views.
TicketDeleteView
(**kwargs)[source]¶ Bases:
django.contrib.auth.mixins.UserPassesTestMixin
,django.views.generic.edit.DeleteView
-
model
¶ alias of
helpdesk.models.Ticket
-
success_url
= '/helpdesk/'¶
-
-
class
helpdesk.views.
TicketAssignView
(**kwargs)[source]¶ Bases:
django.contrib.auth.mixins.UserPassesTestMixin
,django.views.generic.edit.UpdateView
-
model
¶ alias of
helpdesk.models.Ticket
-
form_class
¶ alias of
helpdesk.forms.TicketAssignForm
-
template_name
= 'helpdesk/ticket_assign.html'¶
-
-
helpdesk.views.
is_ticket_creator_or_handler
(request, pk)[source]¶ Details of a ticket can only be viewed by ticket creator, or handlers.
-
class
helpdesk.views.
TicketDetailView
(**kwargs)[source]¶ Bases:
django.contrib.auth.mixins.UserPassesTestMixin
,django.views.generic.detail.DetailView
-
model
¶ alias of
helpdesk.models.Ticket
-
template_name
= 'helpdesk/ticket_detail.html'¶
-
-
class
helpdesk.views.
TicketFollowupView
(**kwargs)[source]¶ Bases:
django.contrib.auth.mixins.UserPassesTestMixin
,django.views.generic.edit.CreateView
-
model
¶ alias of
helpdesk.models.Followup
-
form_class
¶ alias of
helpdesk.forms.FollowupForm
-
template_name
= 'helpdesk/followup_form.html'¶
-