service.py 615 B

12345678910111213141516171819202122232425262728
  1. from django.contrib import admin
  2. from dbsynce.models import Service
  3. @admin.register(Service)
  4. class ServiceAdmin(admin.ModelAdmin):
  5. list_display = (
  6. 'id',
  7. 'servicetype_id',
  8. 'id_provider',
  9. 'resource_id',
  10. 'requirements',
  11. 'id_metaservice',
  12. 'price_alg',
  13. 'price_km',
  14. 'price_min',
  15. 'price_amount',
  16. 'service_status',
  17. 'status',
  18. 'ticket_status',
  19. 'is_global',
  20. 'is_visible',
  21. )
  22. list_filter = (
  23. 'servicetype_id',
  24. 'id_provider',
  25. 'resource_id',
  26. 'ticket_status',
  27. )