Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
l y
Jumpserver
Commits
e4178849
Commit
e4178849
authored
3 years ago
by
feng626
Browse files
Options
Download
Email Patches
Plain Diff
perf: ticket filter
parent
4f889cfe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
apps/tickets/filters.py
+1
-1
apps/tickets/filters.py
apps/tickets/handler/base.py
+1
-1
apps/tickets/handler/base.py
with
2 additions
and
2 deletions
+2
-2
apps/tickets/filters.py
+
1
-
1
View file @
e4178849
...
...
@@ -10,7 +10,7 @@ class TicketFilter(BaseFilterSet):
class
Meta
:
model
=
Ticket
fields
=
(
'id'
,
'title'
,
'type'
,
'status'
,
'applicant'
,
'assignees__id'
,
'id'
,
'title'
,
'type'
,
'status'
,
'state'
,
'applicant'
,
'assignees__id'
,
'applicant_display'
,
)
...
...
This diff is collapsed.
Click to expand it.
apps/tickets/handler/base.py
+
1
-
1
View file @
e4178849
...
...
@@ -29,9 +29,9 @@ class BaseHandler(object):
self
.
_send_applied_mail_to_assignees
()
is_finished
=
False
else
:
self
.
_send_processed_mail_to_applicant
(
self
.
ticket
.
processor
)
self
.
ticket
.
set_state_approve
()
self
.
ticket
.
set_status_closed
()
self
.
_send_processed_mail_to_applicant
(
self
.
ticket
.
processor
)
is_finished
=
True
self
.
ticket
.
save
()
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment