servicetype.py 467 B

1234567891011121314151617181920
  1. from django.contrib import admin
  2. from dbsynce.models import ServiceType
  3. @admin.register(ServiceType)
  4. class ServiceTypeAdmin(admin.ModelAdmin):
  5. list_display = (
  6. 'id',
  7. 'codename',
  8. 'caption',
  9. 'description',
  10. 'requirements',
  11. 'price_type',
  12. 'status',
  13. 'ticket_status',
  14. 'id_metaservice',
  15. 'link_agreement',
  16. 'is_global',
  17. 'is_visible',
  18. )
  19. list_filter = ('ticket_status',)