@method_decorator(atomic, name="post")
Doesn't work on an async view:
ValueError: The view idf.sync.views.view didn't return an HttpResponse
object. It returned an unawaited coroutine instead. You may need to add an
'await' into your view.
The same view works without the decorator.
--
Ticket URL: <https://code.djangoproject.com/ticket/34197>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => duplicate
* component: Utilities => Database layer (models, ORM)
* type: Uncategorized => New feature
Comment:
I think it's about `@atomic` rather than `@method_decorator`. Duplicate of
#33882.
--
Ticket URL: <https://code.djangoproject.com/ticket/34197#comment:1>