11 lines
317 B
Python
11 lines
317 B
Python
from django.contrib import admin
|
|
from .models import Reservation
|
|
from .forms import ReservationForm
|
|
|
|
class ReservationAdmin(admin.ModelAdmin):
|
|
list_display = ('__str__','offer','status')
|
|
ordering = ['reservation_start_date']
|
|
group_by = ['offer','user']
|
|
|
|
|
|
admin.site.register(Reservation, ReservationAdmin) |