6
0

sport_preferrence.py 259 B

1234567
  1. from django.contrib import admin
  2. from webservice_running.models import SportPreferrence
  3. @admin.register(SportPreferrence)
  4. class SportPreferrenceAdmin(admin.ModelAdmin):
  5. list_display = ('id', 'sportsman', 'sport')
  6. list_filter = ('sportsman', 'sport')