mirror of
https://github.com/rjNemo/villafleurie
synced 2026-06-12 13:26:47 +00:00
fix: import handle booking form in view
This commit is contained in:
parent
43da7d4645
commit
cb24a97124
1 changed files with 2 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ from django.shortcuts import render, get_object_or_404
|
||||||
from django.utils.translation import gettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
from rental.models.place import Place
|
from rental.models.place import Place
|
||||||
from rental.models.testimonial import Testimonial
|
from rental.models.testimonial import Testimonial
|
||||||
|
from rental.views.booking import handle_booking_form
|
||||||
|
|
||||||
|
|
||||||
def index(request):
|
def index(request):
|
||||||
|
|
@ -33,7 +34,7 @@ def view(request, place_name='T2'):
|
||||||
'images': images
|
'images': images
|
||||||
}
|
}
|
||||||
|
|
||||||
context, template = handle_reservation_form(
|
context, template = handle_booking_form(
|
||||||
request, context, init_template='rental/detail_place.html')
|
request, context, init_template='rental/detail_place.html')
|
||||||
|
|
||||||
return render(request, template, context)
|
return render(request, template, context)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue