Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. class EditPedido(View):
  2. def get(self, request, venda):
  3. data = {}
  4. venda = fixa.objects.get(id=venda)
  5. data['filial'] = venda.regional
  6. return render(request, 'fixa/fixa_update.html', data)
  7.  
  8. <select name="filial" class="select form-control" required="" id="filial">
  9. <option value="" selected="">---------</option>
  10. {% for filial in filiais %}
  11. <option value="{{ filial.id }}">{{ filial.nome }}</option>
  12. {% endfor %}
  13. </select>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement