from django.contrib import admin from webservice_running.models import SportsmanGallery @admin.register(SportsmanGallery) class SportsmanGalleryAdmin(admin.ModelAdmin): list_display = ('id', 'sportsman', 'image') list_filter = ('sportsman',)