@jacek Hmm..dunno, but Django has a page for postgres-specific stuff
@jacek i used this in the past - https://django-postgres-extra.readthedocs.io/manager/
@jacek I haven't used it much and I'm not sure if this meets your needs but there's the 'update_or_create' method: https://docs.djangoproject.com/en/2.2/ref/models/querysets/#update-or-create
This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either! We adhere to an adapted version of the TootCat Code of Conduct and have documented a list of blocked instances. Ash is the admin and is supported by Fuzzface, Brian!, and Daniel Glus as moderators. Hosting costs are largely covered by our generous supporters on Patreon – thanks for all the help!