We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why do I need to wrap the field in unicode() to make it usable?
unicode(self.order_id)
If I don't I get:
coercing to Unicode: need string or buffer, StringUUID found
This makes it impossible to use in eg. the modellist without wrapping it in a method.
The text was updated successfully, but these errors were encountered:
This was actually a significant issue for me when I performed an upgrade. I ended up doing this:
class CustomUUIDField(UUIDField): def to_python(self, value): val = super(CustomUUIDField, self).to_python(value) return str(val)
And then simply using my custom uuid field everywhere instead.
Sorry, something went wrong.
No branches or pull requests
Why do I need to wrap the field in unicode() to make it usable?
If I don't I get:
This makes it impossible to use in eg. the modellist without wrapping it in a method.
The text was updated successfully, but these errors were encountered: