from django.shortcuts import render
from .models import Reservation
from .forms import ReserveTableForm

# Create your views here.
def reserve_table(request):
    reserve_form=ReserveTableForm()
    if request.method == 'POST':
        reserve_form=ReserveTableForm(request.POST)
        if reserve_form.is_valid():
            reserve_form.save()
    
    context={'form':reserve_form}
    return render(request,'reservation/reservation.html',context)
    

e2512efcbf175dd5ad70fdb2b481036e311a6b04
<mask token>

<mask token>


def reserve_table(request):
    reserve_form = ReserveTableForm()
    if request.method == 'POST':
        reserve_form = ReserveTableForm(request.POST)
        if reserve_form.is_valid():
            reserve_form.save()
    context = {'form': reserve_form}
    return render(request, 'reservation/reservation.html', context)

from django.shortcuts import render
from .models import Reservation
from .forms import ReserveTableForm


def reserve_table(request):
    reserve_form = ReserveTableForm()
    if request.method == 'POST':
        reserve_form = ReserveTableForm(request.POST)
        if reserve_form.is_valid():
            reserve_form.save()
    context = {'form': reserve_form}
    return render(request, 'reservation/reservation.html', context)

from django.shortcuts import render
from .models import Reservation
from .forms import ReserveTableForm

# Create your views here.
def reserve_table(request):
    reserve_form=ReserveTableForm()
    if request.method == 'POST':
        reserve_form=ReserveTableForm(request.POST)
        if reserve_form.is_valid():
            reserve_form.save()
    
    context={'form':reserve_form}
    return render(request,'reservation/reservation.html',context)
    
