diff --git a/gestaoRaul/comandas/__pycache__/views.cpython-313.pyc b/gestaoRaul/comandas/__pycache__/views.cpython-313.pyc index 245e9ba..592de94 100644 Binary files a/gestaoRaul/comandas/__pycache__/views.cpython-313.pyc and b/gestaoRaul/comandas/__pycache__/views.cpython-313.pyc differ diff --git a/gestaoRaul/comandas/views.py b/gestaoRaul/comandas/views.py index 254bdf5..7489f26 100644 --- a/gestaoRaul/comandas/views.py +++ b/gestaoRaul/comandas/views.py @@ -41,7 +41,7 @@ def viewComanda(request): @group_required(groupName='Garçom') def createComanda(request): name = request.POST.get('name-comanda') - mesa_id = int(request.POST.get('select-mesa')[0]) + mesa_id = int(request.POST.get('select-mesa')) mesa = Mesa.objects.get(id=mesa_id) comanda = Comanda(name=name, mesa=mesa, user=request.user) comanda.save() diff --git a/gestaoRaul/db.sqlite3 b/gestaoRaul/db.sqlite3 index 27744d0..2119300 100644 Binary files a/gestaoRaul/db.sqlite3 and b/gestaoRaul/db.sqlite3 differ