mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-06-11 20:26:45 +02:00
Show kbitem categories in kbitem string representation
This commit is contained in:
parent
f8c652d506
commit
2a3272914c
@ -1325,7 +1325,7 @@ class KBItem(models.Model):
|
||||
score = property(_score)
|
||||
|
||||
def __str__(self):
|
||||
return '%s' % self.title
|
||||
return '%s: %s' % (self.category.title, self.title)
|
||||
|
||||
class Meta:
|
||||
ordering = ('title',)
|
||||
|
@ -71,7 +71,7 @@
|
||||
{% if ticket.kbitem %}
|
||||
<tr>
|
||||
<th class="table-active">{% trans "Knowlegebase item" %}</th>
|
||||
<td> <a href ="{{ticket.kbitem.query_url}}"> {{ticket.kbitem.title}} </a> </td>
|
||||
<td> <a href ="{{ticket.kbitem.query_url}}"> {{ticket.kbitem}} </a> </td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
<tr>
|
||||
|
Loading…
x
Reference in New Issue
Block a user