Update specific keys within nested Django JSONField data

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Update specific keys within nested Django JSONField data

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.


You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/07f23d29-a3fa-4ac8-89df-b7d7a3a66ebf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.