Пример #1
0
def vendor_add(request):
    web = webs.vendor_web()
    return web.object_add(request)
Пример #2
0
def vendor_delete(request,object_id):
    web = webs.vendor_web()
    object = get_object_or_404(models.vendor, pk=object_id)
    return web.object_delete(request, object)
Пример #3
0
def vendor_list(request):
    web = webs.vendor_web()
    filter = filters.vendor(request.GET or None)
    table = tables.vendor(request, web, filter.qs, order_by=request.GET.get('sort'))
    return web.object_list(request, filter.form, table)