Moves the controller modules into their own subpackage. There's going to be a lot of stuff in there.
This commit is contained in:
parent
d9e433659d
commit
c2400c4695
11 changed files with 9 additions and 9 deletions
0
registrasion/controllers/__init__.py
Normal file
0
registrasion/controllers/__init__.py
Normal file
|
@ -9,7 +9,7 @@ from django.utils import timezone
|
|||
from registrasion import models as rego
|
||||
|
||||
from conditions import ConditionController
|
||||
from controllers import ProductController
|
||||
from product import ProductController
|
||||
|
||||
|
||||
class CartController(object):
|
||||
|
@ -206,5 +206,5 @@ class CartController(object):
|
|||
quantity = ours - allowed
|
||||
else:
|
||||
quantity = 0
|
||||
|
||||
|
||||
discount_item.save()
|
|
@ -8,7 +8,7 @@ from django.test import TestCase
|
|||
from django.utils import timezone
|
||||
|
||||
from registrasion import models as rego
|
||||
from registrasion.cart import CartController
|
||||
from registrasion.controllers.cart import CartController
|
||||
|
||||
from patch_datetime import SetTimeMixin
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ from django.test import TestCase
|
|||
from django.utils import timezone
|
||||
|
||||
from registrasion import models as rego
|
||||
from registrasion.cart import CartController
|
||||
from registrasion.controllers.cart import CartController
|
||||
|
||||
from test_cart import RegistrationCartTestCase
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ from django.test import TestCase
|
|||
from django.utils import timezone
|
||||
|
||||
from registrasion import models as rego
|
||||
from registrasion.cart import CartController
|
||||
from registrasion.controllers.cart import CartController
|
||||
|
||||
from test_cart import RegistrationCartTestCase
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ from django.test import TestCase
|
|||
from django.utils import timezone
|
||||
|
||||
from registrasion import models as rego
|
||||
from registrasion.cart import CartController
|
||||
from registrasion.controllers.cart import CartController
|
||||
|
||||
from test_cart import RegistrationCartTestCase
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@ from django.test import TestCase
|
|||
from django.utils import timezone
|
||||
|
||||
from registrasion import models as rego
|
||||
from registrasion.cart import CartController
|
||||
from registrasion.invoice import InvoiceController
|
||||
from registrasion.controllers.cart import CartController
|
||||
from registrasion.controllers.invoice import InvoiceController
|
||||
|
||||
from test_cart import RegistrationCartTestCase
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ from django.test import TestCase
|
|||
from django.utils import timezone
|
||||
|
||||
from registrasion import models as rego
|
||||
from registrasion.cart import CartController
|
||||
from registrasion.controllers.cart import CartController
|
||||
|
||||
from test_cart import RegistrationCartTestCase
|
||||
|
||||
|
|
Loading…
Reference in a new issue