Browse Source

Add Visit to admin.

feature/python-error-tracking
Drew Larson 8 years ago
parent
commit
ec68c34701
  1. 8
      bikeshop_project/core/admin.py

8
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')

Loading…
Cancel
Save