Skip to content

Commit fe20509

Browse files
authored
fix: Remove deprecated django.utils.decorator.available_attrs (#28597)
1 parent 7419aaa commit fe20509

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

common/djangoapps/third_party_auth/decorators.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from functools import wraps
77

88
from django.conf import settings
9-
from django.utils.decorators import available_attrs
109
from six.moves.urllib.parse import urlparse # lint-amnesty, pylint: disable=unused-import
1110

1211
from common.djangoapps.third_party_auth.models import LTIProviderConfig
@@ -31,4 +30,4 @@ def wrapped_view(request, *args, **kwargs):
3130
x_frame_option = 'ALLOW'
3231
resp['X-Frame-Options'] = x_frame_option
3332
return resp
34-
return wraps(view_func, assigned=available_attrs(view_func))(wrapped_view)
33+
return wraps(view_func)(wrapped_view)

0 commit comments

Comments
 (0)