I have some object.ID-s which I try to store in the user session as tuple. When I add first one it works but tuple looks like (u\'2\',) but when I try to add ne
(u\'2\',)
Tuple can only allow adding tuple to it. The best way to do it is:
tuple
mytuple =(u'2',) mytuple +=(new.id,)
I tried the same scenario with the below data it all seems to be working fine.
>>> mytuple = (u'2',) >>> mytuple += ('example text',) >>> print mytuple (u'2','example text')