Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Just did a small change for django 1.4 #14

wants to merge 1 commit into from

2 participants

i1caro Gintautas Miliauskas

Just did a small change for django 1.4

Gintautas Miliauskas

The branch at shrubberysoft/ is obsolete, please use gintas/django-picklefield instead. I think it already incorporates this change.

Gintautas Miliauskas gintas closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 21, 2013
  1. i1caro

    Added suport for django 1.4

    i1caro authored
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/picklefield/
4 src/picklefield/
@@ -108,7 +108,7 @@ def to_python(self, value):
return value
- def get_db_prep_value(self, value):
+ def get_db_prep_value(self, value, connection, prepared=False):
Pickle and b64encode the object, optionally compressing it.
@@ -127,7 +127,7 @@ def get_db_prep_value(self, value):
# since both of these methods result in the same value being stored,
# doing things this way is much easier.
value = force_unicode(dbsafe_encode(value, self.compress, self.protocol))
- return value
+ return super(PickledObjectField, self).get_db_prep_value(value, connection, prepared)
def value_to_string(self, obj):
value = self._get_val_from_obj(obj)
Something went wrong with that request. Please try again.