This commit is contained in:
valrus 2024-12-29 08:08:54 -08:00
parent 723e928d79
commit e9a77cac72

View file

@ -1006,7 +1006,7 @@ class FieldSort(Sort):
field_val = obj._types[self.field].null
# If not, or the null value is None, fall back to using an empty string.
if field_val is None:
field_val = ''
field_val = ""
if self.case_insensitive and isinstance(field_val, str):
field_val = field_val.lower()
return field_val