2021-01-17 17:10:04 +01:00
|
|
|
from django.shortcuts import render,get_object_or_404
|
|
|
|
from django.views.generic import (
|
2021-02-06 12:31:59 +01:00
|
|
|
DetailView,
|
|
|
|
UpdateView
|
2021-01-17 17:10:04 +01:00
|
|
|
)
|
2021-02-06 12:31:59 +01:00
|
|
|
from .models import Reservation
|
|
|
|
from .forms import ReservationStatus
|
2021-01-17 17:10:04 +01:00
|
|
|
|
2021-02-06 12:31:59 +01:00
|
|
|
class Reservation_Detail(UpdateView):
|
|
|
|
model = Reservation
|
|
|
|
template_name = 'reservation/reservation-detail.html'
|
|
|
|
form_class = ReservationStatus
|