mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-28 19:03:14 +01:00
0068eccbf4
* Updated jQuery to 1.2.6 * Add jQuery UI 1.6b for interface effects as needed * 'Smoothness' theme from ThemeRoller.com added. * Clean up 'Filter' dialog on Ticket List, long way to go still. * Uses tabs to save a query or load a saved query * Lots of misuse of space here, can be cleaned up somewhat still. * Add ability for users to save filters/queries * Saved queries can be shared, so other users can use them * Users can run saved queries instead of re-filtering * Filter mechanism in Ticket List had to be reworked significantly * Merged 3rd party licenses into LICENSE.3RDPARTY * Updated messages files for EN locale To update, ensure you run './manage.py syncdb' to add the SavedSearch table.
31 lines
1.0 KiB
Python
31 lines
1.0 KiB
Python
from django.contrib import admin
|
|
from helpdesk.models import Queue, Ticket, FollowUp, PreSetReply, KBCategory
|
|
from helpdesk.models import EscalationExclusion, EmailTemplate, KBItem
|
|
from helpdesk.models import TicketChange, Attachment
|
|
|
|
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 TicketChangeInline(admin.StackedInline):
|
|
model = TicketChange
|
|
|
|
class AttachmentInline(admin.StackedInline):
|
|
model = Attachment
|
|
|
|
class FollowUpAdmin(admin.ModelAdmin):
|
|
inlines = [TicketChangeInline, AttachmentInline]
|
|
|
|
admin.site.register(Ticket, TicketAdmin)
|
|
admin.site.register(Queue, QueueAdmin)
|
|
admin.site.register(FollowUp, FollowUpAdmin)
|
|
admin.site.register(PreSetReply)
|
|
admin.site.register(EscalationExclusion)
|
|
admin.site.register(EmailTemplate)
|
|
admin.site.register(KBCategory)
|
|
admin.site.register(KBItem)
|