Fixed #29330 -- Fixed crash when pickling BaseExpression.

Regression in cfff2af02b.
This commit is contained in:
Daniel Miller 2018-04-16 09:10:13 -04:00 committed by Tim Graham
parent 1d5d4867f4
commit 60156750f6
2 changed files with 11 additions and 0 deletions

View file

@ -153,6 +153,11 @@ class BaseExpression:
if output_field is not None:
self.output_field = output_field
def __getstate__(self):
state = self.__dict__.copy()
state.pop('convert_value', None)
return state
def get_db_converters(self, connection):
return (
[]