Update specific keys within nested Django JSONField data

41 views
Skip to first unread message

askpr...@gmail.com

unread,
Feb 21, 2018, 8:14:23 AM2/21/18
to Django developers (Contributions to Django itself)
Hello !

I have come up with a solution to #29112, using jsonb_set function. However, this function is only available from PostgreSQL 9.5, and we need to give support for PostgreSQL 9.4 as well.

We can use PL/Python extension to write a custom function. I am planning to add the function definition in a class that extends Func, and use it with this extension. Is this the correct way of approaching the problem ? Any ideas will be welcome.

Regards
Priyansh
Reply all
Reply to author
Forward
0 new messages