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.catalog.models import Product
from lfs.tax.models import Tax
from lfs.manage.product_taxes.forms import TaxAddForm
from lfs.manage.product_taxes.forms import TaxForm
 
def add_tax(request, template_name="manage/product_taxes/add_tax.html"):
    """Provides a form to add a new tax.
    """
    if request.method == "POST":
        form = TaxAddForm(data=request.POST, files=request.FILES)
            )
    else:
        form = TaxAddForm()
 
    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.catalog.models import Product
from lfs.tax.models import Tax
from lfs.manage.product_taxes.forms import TaxAddForm
from lfs.manage.product_taxes.forms import TaxForm
 
def add_tax(request, template_name="manage/product_taxes/add_tax.html"):
    """Provides a form to add a new tax.
    """
    if request.method == "POST":
        form = TaxAddForm(data=request.POST, files=request.FILES)
            )
    else:
        form = TaxAddForm()
 
    return render_to_response(template_name, RequestContext(request, {