gintas / django-picklefield

A pickled object field for Django
MIT License
180 stars 47 forks source link

Python 3 support #7

Closed rafales closed 11 years ago

rafales commented 11 years ago

Added python 3 support.

Tested with django 1.1, 1.2, 1.3, 1.4, 1.5, using python 2.5, 2.6, 2.7, 3.3.

Note: I had to do some nasty hack in order to support django < 1.3 - here's commit that fixed those problems in django 1.3: https://github.com/django/django/commit/222c73261650201f5ce99e8dd4b1ce0d30a69eb4

And here is the hack: https://github.com/rafales/django-picklefield/blob/fe74ffb96d596fb6f63acff0077b9d5ec1fddf3b/src/picklefield/fields.py#L70 (and _metaclass line).