Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AKPlanning
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KIF
AKPlanning
Commits
e2b97cda
Commit
e2b97cda
authored
3 years ago
by
Benjamin Hättasch
Browse files
Options
Downloads
Patches
Plain Diff
Fix CSP for new event wizard (allow loading external style/script files for datepicker)
parent
e84af897
No related branches found
Branches containing commit
No related tags found
1 merge request
!108
Fix CSP for new event wizard (allow loading external style/script files for datepicker)
Pipeline
#23151
passed
3 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
AKModel/urls.py
+2
-1
2 additions, 1 deletion
AKModel/urls.py
with
2 additions
and
1 deletion
AKModel/urls.py
+
2
−
1
View file @
e2b97cda
from
csp.decorators
import
csp_update
from
django.apps
import
apps
from
django.urls
import
include
,
path
from
rest_framework.routers
import
DefaultRouter
...
...
@@ -51,7 +52,7 @@ def get_admin_urls_event_wizard(admin_site):
return
[
path
(
'
add/wizard/start/
'
,
admin_site
.
admin_view
(
NewEventWizardStartView
.
as_view
()),
name
=
"
new_event_wizard_start
"
),
path
(
'
add/wizard/settings/
'
,
admin_site
.
admin_view
(
NewEventWizardSettingsView
.
as_view
()),
path
(
'
add/wizard/settings/
'
,
csp_update
(
FONT_SRC
=
[
"
maxcdn.bootstrapcdn.com
"
],
SCRIPT_SRC
=
[
"
cdnjs.cloudflare.com
"
],
STYLE_SRC
=
[
"
cdnjs.cloudflare.com
"
])(
admin_site
.
admin_view
(
NewEventWizardSettingsView
.
as_view
())
)
,
name
=
"
new_event_wizard_settings
"
),
path
(
'
add/wizard/created/<slug:event_slug>/
'
,
admin_site
.
admin_view
(
NewEventWizardPrepareImportView
.
as_view
()),
name
=
"
new_event_wizard_prepare_import
"
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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