1
0

orders.py 816 B

12345678910111213141516171819202122232425262728293031323334353637
  1. from django.contrib import admin
  2. from dbsynce.models import Orders
  3. @admin.register(Orders)
  4. class OrdersAdmin(admin.ModelAdmin):
  5. list_display = (
  6. 'id',
  7. 'service',
  8. 'service_type',
  9. 'state',
  10. 'id_metaservice',
  11. 'provider',
  12. 'receiver',
  13. 'client_id',
  14. 'time_created',
  15. 'time_placed',
  16. 'time_start',
  17. 'time_finish_predicted',
  18. 'time_finish_real',
  19. 'ticket',
  20. 'predicted_price',
  21. 'real_price',
  22. 'is_global',
  23. 'is_visible',
  24. )
  25. list_filter = (
  26. 'service',
  27. 'service_type',
  28. 'provider',
  29. 'receiver',
  30. 'client_id',
  31. 'time_created',
  32. 'time_placed',
  33. 'time_start',
  34. 'time_finish_predicted',
  35. 'time_finish_real',
  36. )