X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/22236fb67da2f27ceb35ad138f4d534a4fd08251..dcacc3b4c2ba2f550806a2d22b183f6fac4f63ff:/forum/models/utils.py diff --git a/forum/models/utils.py b/forum/models/utils.py index 1fbda58..5a1912c 100644 --- a/forum/models/utils.py +++ b/forum/models/utils.py @@ -81,7 +81,7 @@ class PickledObjectField(models.Field): raise return value - def get_db_prep_value(self, value): + def get_db_prep_value(self, value, connection, prepared=False): if value is not None and not isinstance(value, PickledObject): if type(value).__name__ in self.markable_types and not (isinstance(value, basestring) and len(value ) > MAX_MARKABLE_STRING_LENGTH):