6
0

sportsman.py 696 B

1234567891011121314151617181920212223242526272829
  1. # -*- coding: utf-8 -*-
  2. from django.contrib import admin
  3. from webservice_running.models import Sportsman
  4. @admin.register(Sportsman)
  5. class SportsmanAdmin(admin.ModelAdmin):
  6. list_display = (
  7. 'id',
  8. 'client',
  9. 'bio',
  10. 'level',
  11. 'birthdate',
  12. 'active_status',
  13. 'time_updated',
  14. 'preferred_time',
  15. 'reliance_rating',
  16. 'gender',
  17. )
  18. list_filter = ('client', 'birthdate', 'time_updated')
  19. raw_id_fields = (
  20. 'blocked_sportsman',
  21. 'browse_sportsman',
  22. 'saved_sportsman',
  23. 'sport_preferrence',
  24. 'achievement',
  25. 'saved_event',
  26. 'participant',
  27. 'browse_event',
  28. )