Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
09b5bd6b
authored
Mar 17, 2014
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: add locale support
closes #106
parent
1f152bdc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
circle/circle/settings/base.py
+1
-0
circle/dashboard/views.py
+3
-1
No files found.
circle/circle/settings/base.py
View file @
09b5bd6b
...
@@ -192,6 +192,7 @@ MIDDLEWARE_CLASSES = (
...
@@ -192,6 +192,7 @@ MIDDLEWARE_CLASSES = (
# Default Django middleware.
# Default Django middleware.
'django.middleware.common.CommonMiddleware'
,
'django.middleware.common.CommonMiddleware'
,
'django.contrib.sessions.middleware.SessionMiddleware'
,
'django.contrib.sessions.middleware.SessionMiddleware'
,
'django.middleware.locale.LocaleMiddleware'
,
'django.middleware.csrf.CsrfViewMiddleware'
,
'django.middleware.csrf.CsrfViewMiddleware'
,
'django.contrib.auth.middleware.AuthenticationMiddleware'
,
'django.contrib.auth.middleware.AuthenticationMiddleware'
,
'django.contrib.messages.middleware.MessageMiddleware'
,
'django.contrib.messages.middleware.MessageMiddleware'
,
...
...
circle/dashboard/views.py
View file @
09b5bd6b
...
@@ -1999,8 +1999,10 @@ def circle_login(request):
...
@@ -1999,8 +1999,10 @@ def circle_login(request):
extra_context
=
{
extra_context
=
{
'saml2'
:
hasattr
(
settings
,
"SAML_CONFIG"
)
'saml2'
:
hasattr
(
settings
,
"SAML_CONFIG"
)
}
}
re
turn
login
(
request
,
authentication_form
=
authentication_form
,
re
sponse
=
login
(
request
,
authentication_form
=
authentication_form
,
extra_context
=
extra_context
)
extra_context
=
extra_context
)
set_language_cookie
(
request
,
response
)
return
response
class
DiskAddView
(
TemplateView
):
class
DiskAddView
(
TemplateView
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment