mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-06-23 11:01:47 +02:00
Remove filter and uneeded render code
This commit is contained in:
parent
f128c79856
commit
b2375381a1
@ -416,15 +416,7 @@
|
||||
}
|
||||
},
|
||||
{data: "submitter"},
|
||||
{
|
||||
data: "last_followup",
|
||||
render: function (data, type, row, meta) {
|
||||
if (data && data !== "None") {
|
||||
return data;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
},
|
||||
{data: "last_followup"},
|
||||
{% if helpdesk_settings.HELPDESK_ENABLE_TIME_SPENT_ON_TICKET %}
|
||||
{data: "time_spent", "visible": false},
|
||||
{% endif %}
|
||||
|
@ -1025,14 +1025,12 @@ def ticket_list(request):
|
||||
('assigned_to', 'assigned_to__id__in'),
|
||||
('status', 'status__in'),
|
||||
('kbitem', 'kbitem__in'),
|
||||
('last_followup', 'last_followup__in'),
|
||||
]
|
||||
filter_null_params = dict([
|
||||
('queue', 'queue__id__isnull'),
|
||||
('assigned_to', 'assigned_to__id__isnull'),
|
||||
('status', 'status__isnull'),
|
||||
('kbitem', 'kbitem__isnull'),
|
||||
('last_followup', 'last_followup__isnull'),
|
||||
])
|
||||
for param, filter_command in filter_in_params:
|
||||
if request.GET.get(param) is not None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user