Jakub Hrozek wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 12/20/2010 03:07 PM, Jan Zelený wrote:
Jakub Hrozek wrote:
When deleting multiple objects, the code tries to enforce that the
primary key is always iterable by doing:
keys = keys[:-1] + (keys[-1], )
But this doesn't work,
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 12/20/2010 03:07 PM, Jan Zelený wrote:
> Jakub Hrozek wrote:
>> When deleting multiple objects, the code tries to enforce that the
>> primary key is always iterable by doing:
>>
>> keys = keys[:-1] + (keys[-1], )
>>
>> But this doesn't work, the li
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
When deleting multiple objects, the code tries to enforce that the
primary key is always iterable by doing:
keys = keys[:-1] + (keys[-1], )
But this doesn't work, the line only concatenates two tuples effectively
returning the original one. See the a