tcms.bugs.views module¶
-
class
tcms.bugs.views.
AddComment
(**kwargs)[source]¶ Bases:
django.views.generic.base.View
-
dispatch
(request, *args, **kwargs)¶
-
http_methods
= ['post']¶
-
-
class
tcms.bugs.views.
Edit
(**kwargs)[source]¶ Bases:
django.views.generic.edit.UpdateView
-
dispatch
(request, *args, **kwargs)¶
-
form_class
¶ alias of
tcms.bugs.forms.NewBugForm
-
get_object
(queryset=None)[source]¶ Return the object the view is displaying.
Require self.queryset and a pk or slug argument in the URLconf. Subclasses can override this to return any object.
-
model
¶ alias of
tcms.bugs.models.Bug
-
template_name
= 'bugs/mutable.html'¶
-
-
class
tcms.bugs.views.
Get
(**kwargs)[source]¶ Bases:
django.views.generic.detail.DetailView
-
dispatch
(request, *args, **kwargs)¶
-
http_method_names
= ['get']¶
-
model
¶ alias of
tcms.bugs.models.Bug
-
template_name
= 'bugs/get.html'¶
-
-
class
tcms.bugs.views.
New
(**kwargs)[source]¶ Bases:
django.views.generic.edit.CreateView
-
static
assignee_from_components
(components)[source]¶ Return the first owner which is assigned to any of the components. This is as best as we can to automatically figure out who should be assigned to this bug.
-
static
create_bug
(data)[source]¶ Helper method used within Issue Tracker integration.
Parameters: data (dict) – Untrusted input, usually via HTTP request Returns: bug Return type: Model
-
dispatch
(request, *args, **kwargs)¶
-
static
find_assignee
(data)[source]¶ Try to automatically find an assignee for Bug by first scanning TestCase components (if present) and then components for the product.
-
form_class
¶ alias of
tcms.bugs.forms.NewBugForm
-
model
¶ alias of
tcms.bugs.models.Bug
-
template_name
= 'bugs/mutable.html'¶
-
static