This commit is contained in:
Kovid Goyal 2010-04-14 10:11:13 +05:30
parent 5d32694762
commit bc4e4e23d9

View File

@ -204,7 +204,7 @@ class CustomColumns(object):
for x in set(set_val) - set(existing): for x in set(set_val) - set(existing):
if x is None: if x is None:
continue continue
existing = self.all_custom(num=data['num']) existing = list(self.all_custom(num=data['num']))
lx = [t.lower() if hasattr(t, 'lower') else t for t in existing] lx = [t.lower() if hasattr(t, 'lower') else t for t in existing]
try: try:
idx = lx.index(x.lower() if hasattr(x, 'lower') else x) idx = lx.index(x.lower() if hasattr(x, 'lower') else x)