Changeset - db332da9584d
[Not reviewed]
0 3 0
Christopher Neugebauer - 8 years ago 2016-03-27 02:12:33
chrisjrn@gmail.com
flake8
2 files changed with 7 insertions and 0 deletions:
0 comments (0 inline, 0 general)
registrasion/templatetags/registrasion_tags.py
Show inline comments
...
 
@@ -9,4 +9,5 @@ register = template.Library()
 
ProductAndQuantity = namedtuple("ProductAndQuantity", ["product", "quantity"])
 

	
 

	
 
@register.assignment_tag(takes_context=True)
 
def available_categories(context):
...
 
@@ -14,4 +15,5 @@ def available_categories(context):
 
    return rego.Category.objects.all()
 

	
 

	
 
@register.assignment_tag(takes_context=True)
 
def invoices(context):
...
 
@@ -19,4 +21,5 @@ def invoices(context):
 
    return rego.Invoice.objects.filter(cart__user=context.request.user)
 

	
 

	
 
@register.assignment_tag(takes_context=True)
 
def items_pending(context):
...
 
@@ -30,4 +33,5 @@ def items_pending(context):
 
    return all_items
 

	
 

	
 
@register.assignment_tag(takes_context=True)
 
def items_purchased(context):
registrasion/views.py
Show inline comments
...
 
@@ -186,4 +186,5 @@ def handle_products(request, category, products, prefix):
 
    return products_form, discounts, handled
 

	
 

	
 
@transaction.atomic
 
def set_quantities_from_products_form(products_form, current_cart):
...
 
@@ -198,4 +199,5 @@ def set_quantities_from_products_form(products_form, current_cart):
 
    current_cart.end_batch()
 

	
 

	
 
def handle_voucher(request, prefix):
 
    ''' Handles a voucher form in the given request. Returns the voucher
...
 
@@ -226,4 +228,5 @@ def handle_voucher(request, prefix):
 
    return (voucher_form, handled)
 

	
 

	
 
@login_required
 
def checkout(request):
0 comments (0 inline, 0 general)