Allow the empty string when writing to bool custom columns. Bulk edit uses the empty string for None, at least in this case.

This commit is contained in:
Charles Haley 2014-02-24 18:44:35 +01:00
parent 215f86ccd2
commit 62c78290c1

View File

@ -94,7 +94,7 @@ def adapt_bool(x):
x = True
elif x == 'false':
x = False
elif x == 'none':
elif x == 'none' or x == '':
x = None
else:
x = bool(int(x))