Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit d7c69ef

Browse files
committed
Move publishing middleware to ICEKIT section of base settings.
If we have to care about the order of this middleware relative to others, we should define that in `calculated` settings.
1 parent 38688a2 commit d7c69ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

icekit/project/settings/_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,6 @@
232232

233233
# Extra.
234234
'django.contrib.admindocs.middleware.XViewMiddleware',
235-
236-
'icekit.publishing.middleware.PublishingMiddleware',
237235
)
238236

239237
ROOT_URLCONF = 'icekit.project.urls'
@@ -610,6 +608,8 @@
610608
'icekit.plugins.twitter_embed',
611609
)
612610

611+
MIDDLEWARE_CLASSES += ('icekit.publishing.middleware.PublishingMiddleware', )
612+
613613
# MASTER PASSWORD #############################################################
614614

615615
AUTHENTICATION_BACKENDS += ('master_password.auth.ModelBackend', )

0 commit comments

Comments
 (0)