×

binel237

22 Reputation

Follow
Activities(1) Posts(0) Series(0) Areas of Expertise Following Followers

binel237 Commented on

Develop a Cart Application with Django

This tutorial is the second article in our series on building an e-commerce app using the Django web framework.

Hi,Thanks for asking this question.I think there is no need to add a reference to the 'client' inside this 'CartItem' model, because there is already a reference to it inside the 'Cart' model, through the member 'user' of the django model 'User'.Then, you can get access to the client of a CartItem through the chained reference:CartItem --> Cart --> User.Hope this makes things more clear for you.Don't hesitate to reach back here if you have any other question.BR,Bineli Arsene
Areas of Expertise

Following (1)

See All

Followers (0)

See All
Latest Comments
No series yet.