Вьюха с эскизами

Добавил вьюху с эскизами
Добавил переход на вьюху с эскизами со страницы заказов
This commit is contained in:
2015-06-08 16:22:59 +05:00
parent 13cca24979
commit c7b26ce9c0
4 changed files with 21 additions and 2 deletions

View File

@@ -105,6 +105,13 @@ def main(request, day, month, year):
})
return HttpResponse(t.render(c))
@login_required
def sketches(request, order_id):
curr_order = Order.objects.get(pk = order_id)
table = SketchesTable(Sketch.objects.filter(order = curr_order))
RequestConfig(request).configure(table)
return render(request, 'asuzr/table.html', {'table': table, 'title': 'Эскизы заказа %s' % curr_order})
@login_required
def orders(request, archive):
is_archive = (archive == '1')
@@ -140,4 +147,4 @@ def production_table(request, order_id):
'sel_order' : sel_order,
'cost_items' : cost_items,
})
return HttpResponse(t.render(c))
return HttpResponse(t.render(c))