django-uuidfield
django-uuidfield copied to clipboard
unicode() method does not work in Python 3.3
Hi,
I recently submitted a fix for django-haystack so that UUID pk fields would work properly. https://github.com/toastdriven/django-haystack/pull/1115
However, I notice that the Haystack tests for Python 3.3 fail because of: (From https://travis-ci.org/toastdriven/django-haystack/jobs/44221681)
... File "/home/travis/build/toastdriven/django-haystack/django_uuidfield-0.5.0-py3.3.egg/uuidfield/fields.py", line 26, in unicode return unicode(str(self)) nose.proxy.NameError: Problem installing fixture '/home/travis/build/toastdriven/django-haystack/test_haystack/core/fixtures/initial_data.json': global name 'unicode' is not defined ...
In the unicode method for the field, a simple check of whether this is Python 2 or 3 might be the way to go.
Thanks, /mike
I just noticed this commit/merge which I think would fix this problem. https://github.com/dcramer/django-uuidfield/commit/ec4f97fe6e59a6a67fa83db44dbd4250255651b6
Is a new release scheduled?
actually this happens. we needed to add a patch to solve, because we are using in production. Is there any date for new release?
A release with python 3 support would indeed be nice :)
just ran into this issue too, any news?