Use default str for displaying kbitems in filter view

This commit is contained in:
Timothy Hobbs 2020-02-11 17:11:41 +01:00
parent 3d7860b5a3
commit 28531144db

View File

@ -942,7 +942,7 @@ def ticket_list(request):
'<a href="http://docs.djangoproject.com/en/dev/ref/databases/#sqlite-string-matching">'
'Django Documentation on string matching in SQLite</a>.')
kbitem_choices = [(item.pk, item.title) for item in KBItem.objects.all()]
kbitem_choices = [(item.pk, str(item)) for item in KBItem.objects.all()]
return render(request, 'helpdesk/ticket_list.html', dict(
context,