2018-08-08 20:18:39 +00:00
|
|
|
from django.contrib import admin
|
|
|
|
|
2018-08-10 16:37:27 +00:00
|
|
|
from .models import Ride
|
|
|
|
|
|
|
|
|
|
|
|
@admin.register(Ride)
|
|
|
|
class RideModelAdmin(admin.ModelAdmin):
|
2018-08-10 16:39:21 +00:00
|
|
|
list_display = ('location', 'when', 'seats', 'user')
|
2018-08-10 16:37:27 +00:00
|
|
|
list_filter = ('camp', 'user')
|