6
0

event.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. 'required_level',
  33. 'is_public',
  34. )
  35. list_filter = (
  36. 'order_synced',
  37. 'resource_id',
  38. 'sport',
  39. 'host',
  40. 'time_updated',
  41. 'time_close',
  42. 'is_public',
  43. )