orders.py 866 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. 'status',
  10. 'id_metaservice',
  11. 'title',
  12. 'note',
  13. 'provider',
  14. 'receiver',
  15. 'client_id',
  16. 'time_created',
  17. 'time_placed',
  18. 'time_start',
  19. 'time_finish_predicted',
  20. 'time_finish_real',
  21. 'ticket',
  22. 'predicted_price',
  23. 'real_price',
  24. 'asap',
  25. 'is_global',
  26. 'is_visible',
  27. )
  28. list_filter = (
  29. 'service',
  30. 'service_type',
  31. 'provider',
  32. 'receiver',
  33. 'client_id',
  34. 'time_created',
  35. 'time_placed',
  36. 'time_start',
  37. 'time_finish_predicted',
  38. 'time_finish_real',
  39. )