provider.py 492 B

1234567891011121314151617181920
  1. from django.contrib import admin
  2. from metaservicesynced.models import Provider
  3. @admin.register(Provider)
  4. class ProviderAdmin(admin.ModelAdmin):
  5. list_display = (
  6. 'id',
  7. 'type',
  8. 'company_id',
  9. 'user_id',
  10. 'id_metaservice',
  11. 'requirements',
  12. 'status',
  13. 'ticket_status',
  14. 'location_type',
  15. 'default_location',
  16. 'is_global',
  17. 'is_visible',
  18. )
  19. list_filter = ('company_id', 'user_id', 'ticket_status')