Merge pull request #519 from mrkiwi-nz/master

Added some helpful columns and filters to the follow-up list page.
This commit is contained in:
Garret Wassermann 2017-06-14 01:11:37 -04:00 committed by GitHub
commit 410f59ad16

View File

@ -40,6 +40,12 @@ class AttachmentInline(admin.StackedInline):
@admin.register(FollowUp)
class FollowUpAdmin(admin.ModelAdmin):
inlines = [TicketChangeInline, AttachmentInline]
list_display = ('ticket_get_ticket_for_url', 'title', 'date', 'ticket', 'user', 'new_status')
list_filter = ('user', 'date', 'new_status')
def ticket_get_ticket_for_url(self, obj):
return obj.ticket.ticket_for_url
ticket_get_ticket_for_url.short_description = _('Slug')
@admin.register(KBItem)