diff --git a/src/lending/book.py b/src/lending/book.py index e805248..e284a3b 100644 --- a/src/lending/book.py +++ b/src/lending/book.py @@ -3,7 +3,7 @@ from protean import handle from protean.fields import String -from lending import HoldPlaced +from lending.patron import HoldPlaced from lending.domain import lending diff --git a/src/lending/checkout_service.py b/src/lending/checkout_service.py index f496ffa..30c51f5 100644 --- a/src/lending/checkout_service.py +++ b/src/lending/checkout_service.py @@ -2,7 +2,8 @@ from protean.exceptions import ValidationError from protean.fields import Identifier -from lending import Book, BookType, Checkout, HoldStatus, Patron, PatronType +from lending.patron import Checkout, HoldStatus, Patron, PatronType +from lending.book import Book, BookType from lending.domain import lending diff --git a/src/lending/daily_sheet_service.py b/src/lending/daily_sheet_service.py index 1f763b5..38654fe 100644 --- a/src/lending/daily_sheet_service.py +++ b/src/lending/daily_sheet_service.py @@ -1,7 +1,8 @@ from datetime import date -from lending import Book, HoldStatus, Patron +from lending.book import Book from lending.domain import lending +from lending.patron import HoldStatus, Patron @lending.domain_service(part_of=[Patron, Book]) diff --git a/src/lending/holding_service.py b/src/lending/holding_service.py index dcd370d..e32ab4e 100644 --- a/src/lending/holding_service.py +++ b/src/lending/holding_service.py @@ -4,17 +4,8 @@ from protean.exceptions import ValidationError from protean.fields import Identifier -from lending import ( - Book, - BookStatus, - BookType, - Hold, - HoldPlaced, - HoldStatus, - HoldType, - Patron, - PatronType, -) +from lending.book import Book, BookStatus, BookType +from lending.patron import Hold, HoldPlaced, HoldStatus, HoldType, Patron, PatronType from lending.domain import lending