BoostedAnimal
BoostedAnimal

Reputation: 73

Update or create async Django ORM instance

As the Django docs states, it supports async using a custom interface, with methods like get being aget. I'm trying to save my instances using update_or_create method and I was wondering how can I convert this to an async context.

Upvotes: 6

Views: 1471

Answers (1)

Sören Rifé
Sören Rifé

Reputation: 538

Django 4.1 async ORM interface also supports methods like update_or_create. Its definition follows the same logic, it is called aupdate_or_create.

Upvotes: 7

Related Questions