Changeset - 3ab5ac32cadc
[Not reviewed]
0 1 0
Christopher Neugebauer - 8 years ago 2016-05-01 04:56:51
chrisjrn@gmail.com
Part of CartController->BatchController memoisation
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
registrasion/views.py
Show inline comments
...
 
@@ -7,5 +7,6 @@ from registrasion.models import inventory
 
from registrasion.models import people
 
from registrasion.controllers.discount import DiscountController
 
from registrasion.controllers.batch import BatchController
 
from registrasion.controllers.cart import CartController
 
from registrasion.controllers.credit_note import CreditNoteController
 
from registrasion.controllers.discount import DiscountController
 
from registrasion.controllers.invoice import InvoiceController
...
 
@@ -172,2 +173,3 @@ def guided_registration(request):
 

	
 
        with BatchController.batch(request.user):
 
            available_products = set(ProductController.available_products(
...
 
@@ -183,3 +185,2 @@ def guided_registration(request):
 

	
 
        with CartController.operations_batch(request.user):
 
            for category in cats:
...
 
@@ -347,2 +348,3 @@ def product_category(request, category_id):
 

	
 
    with BatchController.batch(request.user):
 
        products = ProductController.available_products(
0 comments (0 inline, 0 general)