Coverage for /home/tribaal/workspace/django-shop/shop/forms : 97.44%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
#-*- coding: utf-8 -*-
[(x.url_namespace, x.backend_name) for x in shipping_backends])
""" A form displaying all available payment and shipping methods (the ones defined in settings.SHOP_SHIPPING_BACKENDS and settings.SHOP_PAYMENT_BACKENDS) """ choices=get_shipping_backends_choices())
"""A form for the CartItem model. To be used in the CartDetails view."""
""" We don't save the model using the regular way here because the Cart's ``update_quantity()`` method already takes care of deleting items from the cart when the quantity is set to 0. """ quantity)
""" Returns a CartItemFormSet which can be used in the CartDetails view.
:param cart_items: The queryset to be used for this formset. This should be the list of updated cart items of the current cart. :param data: Optional POST data to be bound to this formset. """ extra=0)
# The Django ModelFormSet pulls the item out of the database again and we # would lose the updated line_subtotals |