Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
code.vt.edu will be down for maintenance from 0530-0630 EDT Wednesday, March 26th
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
fe20509d
Unverified
Commit
fe20509d
authored
3 years ago
by
Usama Sadiq
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix: Remove deprecated django.utils.decorator.available_attrs (#28597)
parent
7419aaa4
Branches
Branches containing commit
Tags
release-2021-09-02-04.58
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/djangoapps/third_party_auth/decorators.py
+1
-2
1 addition, 2 deletions
common/djangoapps/third_party_auth/decorators.py
with
1 addition
and
2 deletions
common/djangoapps/third_party_auth/decorators.py
+
1
−
2
View file @
fe20509d
...
...
@@ -6,7 +6,6 @@ Decorators that can be used to interact with third_party_auth.
from
functools
import
wraps
from
django.conf
import
settings
from
django.utils.decorators
import
available_attrs
from
six.moves.urllib.parse
import
urlparse
# lint-amnesty, pylint: disable=unused-import
from
common.djangoapps.third_party_auth.models
import
LTIProviderConfig
...
...
@@ -31,4 +30,4 @@ def xframe_allow_whitelisted(view_func):
x_frame_option
=
'
ALLOW
'
resp
[
'
X-Frame-Options
'
]
=
x_frame_option
return
resp
return
wraps
(
view_func
,
assigned
=
available_attrs
(
view_func
)
)(
wrapped_view
)
return
wraps
(
view_func
)(
wrapped_view
)
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment