Booking management

Let's leave the car admin section as it is for now and move on to the admin for Booking model. Every time a visitor to the site submits the Book Now form accessible from the car details page, we create a new Booking model record. We need a way to allow the client to look at these booking enquiries, filter them based on some criteria, and accept or reject them. Let's look at how to do this. For a start, let's make sure that our The Booking model shows up as an item in our admin panel. To do so, add these two lines to your frontend/admin.py file:

from frontend.models import Booking
admin.site.register(Booking)

If you take a look at the admin panel now at the URL http://127.0.0.1:8000/admin/, you should see that the Booking model ...

Get Django Project Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.