16. Cart - user with login
As previously mentioned, our cart will feature two primary structures tailored for both logged-in and non-logged-in users.

def __str__(self) :
return str(self.email)def __str__(self):
return f"Client: {self.client} - id_order: {self.id} - Finalized: {self.finished}"def __str__(self):
return f"Order ID: {self.order.id} - Product: {self.itemstock.product}, {self.itemstock.size}, {self.itemstock.color.name}"

Last updated