You can have a flag in cart class to mark if things are cleared. Then in the
__iter__ function, check the flag before getting the keys.
If you do this you also need to add the check in add/remove and others
accordingly.
--
You received this message because you are subscribed to the Google Grou
Hello,
I am practicing for my college exams. I am building a Restaurant Order
System with Django and I am using Django sessions for the first. I borrowed
some ideas from the "Django by example".
Below you can find the MenuItem model and Order Model.
class MenuItem(models.Model):
2 matches
Mail list logo