--

Hi and thank you for your nice words!

Regarding your observation, you're copletely right. Thank you for pointing this out. The inner/core domain should indeed not point to outside dependencies.

The DjangoOrder class isn't defined in the article. It's a regular Django model class for orders to interface with the ORM and database. It should be somewhere close to the DjangoOrderRepository.

The code you highlighted should actually be part of the DjangoOrder class and the functions should be called `to_domain() -> Order` and `from_domain(order: Order) -> DjangoOrder`

I will update the article and thanks again for the feedback!

--

--

Douwe van der Meij
Douwe van der Meij

No responses yet