Skip to content

How to support JSONField #26

@lucas-bremond

Description

@lucas-bremond

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions