Changeset - db332da9584d
[Not reviewed]
0 3 0
Christopher Neugebauer - 8 years ago 2016-03-27 02:12:33
chrisjrn@gmail.com
flake8
3 files changed with 9 insertions and 2 deletions:
0 comments (0 inline, 0 general)
registrasion/forms.py
Show inline comments
...
 
@@ -122,4 +122,4 @@ def ProductsForm(category, products):
 
    RENDER_TYPES = {
 
        rego.Category.RENDER_TYPE_QUANTITY : _QuantityBoxProductsForm,
 
        rego.Category.RENDER_TYPE_RADIO : _RadioButtonProductsForm,
 
        rego.Category.RENDER_TYPE_QUANTITY: _QuantityBoxProductsForm,
 
        rego.Category.RENDER_TYPE_RADIO: _RadioButtonProductsForm,
 
    }
registrasion/templatetags/registrasion_tags.py
Show inline comments
...
 
@@ -10,2 +10,3 @@ ProductAndQuantity = namedtuple("ProductAndQuantity", ["product", "quantity"])
 

	
 

	
 
@register.assignment_tag(takes_context=True)
...
 
@@ -15,2 +16,3 @@ def available_categories(context):
 

	
 

	
 
@register.assignment_tag(takes_context=True)
...
 
@@ -20,2 +22,3 @@ def invoices(context):
 

	
 

	
 
@register.assignment_tag(takes_context=True)
...
 
@@ -31,2 +34,3 @@ def items_pending(context):
 

	
 

	
 
@register.assignment_tag(takes_context=True)
registrasion/views.py
Show inline comments
...
 
@@ -187,2 +187,3 @@ def handle_products(request, category, products, prefix):
 

	
 

	
 
@transaction.atomic
...
 
@@ -199,2 +200,3 @@ def set_quantities_from_products_form(products_form, current_cart):
 

	
 

	
 
def handle_voucher(request, prefix):
...
 
@@ -227,2 +229,3 @@ def handle_voucher(request, prefix):
 

	
 

	
 
@login_required
0 comments (0 inline, 0 general)