Did I find the right examples for you? yes no

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

src/l/f/lfs-HEAD/customer/views.py   lfs(Download)
# lfs imports
import lfs
from lfs.customer.forms import AddressForm
from lfs.customer.forms import EmailForm
from lfs.customer.forms import RegisterForm
 
    if request.method == "POST":    
        shipping_form = AddressForm(prefix="shipping", data=request.POST,
            instance = customer.selected_shipping_address)
 
        invoice_form = AddressForm(prefix="invoice", data=request.POST,
    else:            
 
        shipping_form = AddressForm(prefix="shipping",
            instance=customer.selected_shipping_address)
 
        invoice_form = AddressForm(prefix="invoice", 

src/d/j/django-lfs-0.7.7/lfs/customer/views.py   django-lfs(Download)
from lfs.customer.forms import EmailForm
from lfs.customer.forms import RegisterForm
from lfs.customer.forms import AddressForm
from lfs.customer.models import Address
from lfs.order.models import Order
        shipping_form = form_class(request.POST, prefix=prefix)
 
        form = AddressForm(request.POST)
        if form.is_valid() and invoice_form.is_valid() and shipping_form.is_valid():
            save_address(request, customer, INVOICE_PREFIX)
                                })
 
        form = AddressForm(initial=initial)
    return render_to_response(template_name, RequestContext(request, {
        "form": form,