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
I've tried the following:
from django.contrib.postgres.fields import JSONField from fernet_fields import EncryptedField class EncryptedJSONField (EncryptedField, JSONField): ... private_column = EncryptedJSONField(default = dict)
but got the following error:
django.db.utils.ProgrammingError: column "private_column" is of type jsonb but expression is of type bytea
Any suggestion?
The text was updated successfully, but these errors were encountered:
@lucas-bremond I managed to solve this way, I don't know if it's the best way, but it worked for me
from fernet_fields import EncryptedField from django.contrib.postgres.fields import JSONField class CustomJSONField(JSONField): def db_type(self, connection): return 'text' class JSONEncryptedField(EncryptedField, CustomJSONField): pass
Sorry, something went wrong.
No branches or pull requests
I've tried the following:
but got the following error:
Any suggestion?
The text was updated successfully, but these errors were encountered: