Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class EditPedido(View):
- def get(self, request, venda):
- data = {}
- venda = fixa.objects.get(id=venda)
- data['filial'] = venda.regional
- return render(request, 'fixa/fixa_update.html', data)
- <select name="filial" class="select form-control" required="" id="filial">
- <option value="" selected="">---------</option>
- {% for filial in filiais %}
- <option value="{{ filial.id }}">{{ filial.nome }}</option>
- {% endfor %}
- </select>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement