Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-openid-auth
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
django-openid-auth
Commits
cdbc3e17
Commit
cdbc3e17
authored
Apr 18, 2012
by
Kevin McDermott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tested with Django 1.3.0, 1.3.1, 1.2.5
parent
bcf8d99d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
7 deletions
+1
-7
django_openid_auth/admin.py
+1
-6
django_openid_auth/tests/test_admin.py
+0
-1
No files found.
django_openid_auth/admin.py
View file @
cdbc3e17
...
@@ -27,7 +27,6 @@
...
@@ -27,7 +27,6 @@
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
# POSSIBILITY OF SUCH DAMAGE.
import
django
from
django.conf
import
settings
from
django.conf
import
settings
from
django.contrib
import
admin
from
django.contrib
import
admin
from
django_openid_auth.models
import
Nonce
,
Association
,
UserOpenID
from
django_openid_auth.models
import
Nonce
,
Association
,
UserOpenID
...
@@ -86,8 +85,4 @@ if getattr(settings, 'OPENID_USE_AS_ADMIN_LOGIN', False):
...
@@ -86,8 +85,4 @@ if getattr(settings, 'OPENID_USE_AS_ADMIN_LOGIN', False):
return
HttpResponseRedirect
(
return
HttpResponseRedirect
(
settings
.
LOGIN_URL
+
"?next="
+
request
.
get_full_path
())
settings
.
LOGIN_URL
+
"?next="
+
request
.
get_full_path
())
# Overide the standard admin login form.
admin
.
sites
.
AdminSite
.
login
=
_openid_login
if
django
.
VERSION
<
(
1
,
3
,
1
,
'final'
):
admin
.
sites
.
AdminSite
.
login
=
_openid_login
else
:
admin
.
sites
.
AdminSite
.
display_login_form
=
_openid_login
django_openid_auth/tests/test_admin.py
View file @
cdbc3e17
...
@@ -31,7 +31,6 @@ Tests for the django_openid_auth Admin login form replacement.
...
@@ -31,7 +31,6 @@ Tests for the django_openid_auth Admin login form replacement.
import
os
import
os
import
unittest
import
unittest
import
django
from
django.conf
import
settings
from
django.conf
import
settings
from
django.contrib.auth.models
import
User
,
AnonymousUser
from
django.contrib.auth.models
import
User
,
AnonymousUser
...
...
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