mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-14 02:41:26 +01:00
c762313e08
* Changes to a few translation blocks; this is still a WIP.
27 lines
945 B
Python
27 lines
945 B
Python
from django.contrib import admin
|
|
from helpdesk.models import Queue, Ticket, FollowUp, PreSetReply, KBCategory
|
|
from helpdesk.models import EscalationExclusion, EmailTemplate, KBItem
|
|
|
|
class QueueAdmin(admin.ModelAdmin):
|
|
list_display = ('title', 'slug', 'email_address')
|
|
|
|
class TicketAdmin(admin.ModelAdmin):
|
|
list_display = ('title', 'status', 'assigned_to', 'submitter_email',)
|
|
date_hierarchy = 'created'
|
|
list_filter = ('assigned_to', 'status', )
|
|
|
|
class GenericAdmin(admin.ModelAdmin):
|
|
pass
|
|
|
|
class PreSetReplyAdmin(admin.ModelAdmin):
|
|
list_display = ('name',)
|
|
|
|
admin.site.register(Ticket, TicketAdmin)
|
|
admin.site.register(Queue, QueueAdmin)
|
|
admin.site.register(FollowUp, GenericAdmin)
|
|
admin.site.register(PreSetReply, GenericAdmin)
|
|
admin.site.register(EscalationExclusion, GenericAdmin)
|
|
admin.site.register(EmailTemplate, GenericAdmin)
|
|
admin.site.register(KBCategory, GenericAdmin)
|
|
admin.site.register(KBItem, GenericAdmin)
|