@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!