diff --git a/bikeshop_project/core/admin.py b/bikeshop_project/core/admin.py index db26c22..f9acfdf 100644 --- a/bikeshop_project/core/admin.py +++ b/bikeshop_project/core/admin.py @@ -2,4 +2,10 @@ from django.contrib import admin from .models import Membership, Payment, Visit # Register your models here. -admin.site.register([Membership, Payment, Visit]) +admin.site.register([Membership, Payment]) + + +@admin.register(Visit) +class VistAdmin(admin.ModelAdmin): + ordering = ('created_at',) + list_display = ('member', 'purpose', 'created_at')