mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-05 13:35:42 +00:00
bug: relacionamento id mesa com comanda resolvido
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user