A simple ticketing application written in Python/Django
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

admin.py 432B

1234567891011121314151617
  1. from django.contrib import admin
  2. from .models import Ticket, FollowUp, Attachment
  3. class TicketAdmin(admin.ModelAdmin):
  4. list_display = ('id',
  5. 'title',
  6. 'description',
  7. 'assigned_to',
  8. 'created',
  9. 'updated',)
  10. # Register Models
  11. admin.site.register(Ticket, TicketAdmin)
  12. admin.site.register(FollowUp)
  13. admin.site.register(Attachment)