event.py 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. from django.contrib import admin
  2. from webservice_running.models import Event
  3. @admin.register(Event)
  4. class EventAdmin(admin.ModelAdmin):
  5. list_display = (
  6. 'id',
  7. 'order_synced',
  8. 'resource_id',
  9. 'rating_id',
  10. 'attempts',
  11. 'order_place_type',
  12. 'order_place_start',
  13. 'order_place_start_gps',
  14. 'order_place_start_sector',
  15. 'order_place_start_real',
  16. 'order_place_start_real_gps',
  17. 'order_place_finish_predicted',
  18. 'order_place_finish_predicted_gps',
  19. 'order_place_finish_sector',
  20. 'order_place_finish_real',
  21. 'order_place_finish_real_gps',
  22. 'sport',
  23. 'host',
  24. 'required_gender',
  25. 'description',
  26. 'time_updated',
  27. 'time_close',
  28. 'max_participants',
  29. 'min_participants',
  30. 'max_age',
  31. 'min_age',
  32. 'min_level',
  33. 'max_level',
  34. 'is_public',
  35. )
  36. list_filter = (
  37. 'order_synced',
  38. 'resource_id',
  39. 'sport',
  40. 'host',
  41. 'time_updated',
  42. 'time_close',
  43. 'is_public',
  44. )