You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
depot_django/booking/views.py

14 lines
425 B
Python

from django.shortcuts import render
from django.views.generic import CreateView
# Create your views here.
class CreateBookingView(CreateView):
template_name = 'create-booking.html'
extra_context = {
'title': 'Create Booking',
'description': 'This is the create booking page.',
}
def get(self, request, *args, **kwargs):
return render(request, self.template_name, self.extra_context)