Did I find the right examples for you? yes no

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

src/d/j/django-lfs-0.7.7/lfs/manage/product_taxes/views.py   django-lfs(Download)
from lfs.tax.models import Tax
from lfs.manage.product_taxes.forms import TaxAddForm
from lfs.manage.product_taxes.forms import TaxForm
 
 
    tax = get_object_or_404(Tax, pk=id)
    if request.method == "POST":
        form = TaxForm(instance=tax, data=request.POST, files=request.FILES)
        if form.is_valid():
            form.save()
            )
    else:
        form = TaxForm(instance=tax)
 
    return render_to_response(template_name, RequestContext(request, {

src/d/j/django-lfs-HEAD/lfs/manage/product_taxes/views.py   django-lfs(Download)
from lfs.tax.models import Tax
from lfs.manage.product_taxes.forms import TaxAddForm
from lfs.manage.product_taxes.forms import TaxForm
 
 
    tax = get_object_or_404(Tax, pk=id)
    if request.method == "POST":
        form = TaxForm(instance=tax, data=request.POST, files=request.FILES)
        if form.is_valid():
            form.save()
            )
    else:
        form = TaxForm(instance=tax)
 
    return render_to_response(template_name, RequestContext(request, {