Skip to content

Commit a44cb67

Browse files
blueyedRyan P Kilby
authored andcommitted
tests: fix usage of transaction.non_atomic_requests (#6043)
1 parent 06526ca commit a44cb67

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_atomic_requests.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from django.db import connection, connections, transaction
77
from django.http import Http404
88
from django.test import TestCase, TransactionTestCase, override_settings
9-
from django.utils.decorators import method_decorator
109

1110
from rest_framework import status
1211
from rest_framework.exceptions import APIException
@@ -37,7 +36,7 @@ def post(self, request, *args, **kwargs):
3736

3837

3938
class NonAtomicAPIExceptionView(APIView):
40-
@method_decorator(transaction.non_atomic_requests)
39+
@transaction.non_atomic_requests
4140
def dispatch(self, *args, **kwargs):
4241
return super(NonAtomicAPIExceptionView, self).dispatch(*args, **kwargs)
4342

0 commit comments

Comments
 (0)