Did I find the right examples for you? yes no

All Samples(13)  |  Call(13)  |  Derive(0)  |  Import(0)

src/d/j/django-lfs-0.7.7/lfs/manage/product_taxes/views.py   django-lfs(Download)
def manage_taxes(request):
    """Dispatches to the first tax or to the add tax form.
    """
    try:
        tax = Tax.objects.all()[0]
    return render_to_response(template_name, RequestContext(request, {
        "tax": tax,
        "taxes": Tax.objects.all(),
        "form": form,
        "current_id": int(id),
    return render_to_response(template_name, RequestContext(request, {
        "form": form,
        "taxes": Tax.objects.all(),
        "next": request.REQUEST.get("next", request.META.get("HTTP_REFERER")),
    }))

src/d/j/django-lfs-HEAD/lfs/manage/product_taxes/views.py   django-lfs(Download)
def manage_taxes(request):
    """Dispatches to the first tax or to the add tax form.
    """
    try:
        tax = Tax.objects.all()[0]
    return render_to_response(template_name, RequestContext(request, {
        "tax": tax,
        "taxes": Tax.objects.all(),
        "form": form,
        "current_id": int(id),
    return render_to_response(template_name, RequestContext(request, {
        "form": form,
        "taxes": Tax.objects.all(),
        "next": request.REQUEST.get("next", request.META.get("HTTP_REFERER")),
    }))

src/l/f/lfs-HEAD/manage/views/tax.py   lfs(Download)
def manage_taxes(request):
    """Dispatches to the first tax or to the add tax form.
    """
    try:
        tax = Tax.objects.all()[0]
    return render_to_response(template_name, RequestContext(request, {
        "tax" : tax,
        "taxes" : Tax.objects.all(),
        "form" : form,
        "current_id" : int(id),
    return render_to_response(template_name, RequestContext(request, {
        "form" : form,
        "taxes" : Tax.objects.all(),        
    }))
 

src/d/j/django-lfs-0.7.7/lfs/manage/voucher/views.py   django-lfs(Download)
    page = paginator.page(request.REQUEST.get("page", 1))
 
    taxes = Tax.objects.all()
 
    if request.method == "POST" and deleted == False:

src/d/j/django-lfs-0.7.7/lfs/manage/voucher/forms.py   django-lfs(Download)
    def __init__(self, *args, **kwargs):
        super(VoucherForm, self).__init__(*args, **kwargs)
 
        taxes = [["", "---"]]
        taxes.extend([(t.id, t.rate) for t in Tax.objects.all()])

src/d/j/django-lfs-HEAD/lfs/manage/voucher/views.py   django-lfs(Download)
    page = paginator.page(request.REQUEST.get("page", 1))
 
    taxes = Tax.objects.all()
 
    if request.method == "POST" and deleted == False:

src/d/j/django-lfs-HEAD/lfs/manage/voucher/forms.py   django-lfs(Download)
    def __init__(self, *args, **kwargs):
        super(VoucherForm, self).__init__(*args, **kwargs)
 
        taxes = [["", "---"]]
        taxes.extend([(t.id, t.rate) for t in Tax.objects.all()])