from running.models import * from django.contrib import admin class ResultInline(admin.TabularInline): model = Result fields = [ 'date', 'distance', 'time' ] class RunningUserAdmin(admin.ModelAdmin): inlines = [ ResultInline, ] class Media: css = { "all" : ("css/hide_admin_original.css",) } admin.site.register(RunningUser, RunningUserAdmin) class ResultAdmin(admin.ModelAdmin): list_display = [ 'user', 'distance' ,'time' , 'date' ] list_filter = [ 'user' ] admin.site.register(Result, ResultAdmin)