Hello
in my model, i have a field like this:
keywords = ArrayField(JSONField(), null=True)
posting to this model the corresponding data:
{"title":"goodness",keywords":[{"name":"good","weigth":0.7},{"name":"bad","
weigth":0.8}]}
i get the following exception:
psycopg2.ProgrammingError: column "keywords" is of type jsonb[] but
expression is of type text[]
LINE 1: ..."title", "keywords") VALUES ('goodness', ARRAY['{"n...
^
HINT: You will need to rewrite or cast the expression.
it seems that others faced
<http://stackoverflow.com/questions/31641894/python-and-psycopg2-convert-python-list-of-jsonb-elements-to-postgres-jsonb-ar>
this issue, but i want to handle this in DRF (de)serialization level
any help would be highly appreciated
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.