Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
1206eea1
Kaydet (Commit)
1206eea1
authored
May 04, 2016
tarafından
Dan Stephenson
Kaydeden (comit)
Tim Graham
May 04, 2016
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #26558 -- Removed need for request context processor on admin login page.
üst
ad0f536e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
3 deletions
+19
-3
AUTHORS
AUTHORS
+1
-0
sites.py
django/contrib/admin/sites.py
+1
-0
login.html
django/contrib/admin/templates/admin/login.html
+1
-1
1.9.7.txt
docs/releases/1.9.7.txt
+2
-1
tests.py
tests/admin_views/tests.py
+14
-1
No files found.
AUTHORS
Dosyayı görüntüle @
1206eea1
...
...
@@ -183,6 +183,7 @@ answer newbie questions, and generally made Django that much better:
Danilo Bargen
Dan Johnson <danj.py@gmail.com>
Dan Poirier <poirier@pobox.com>
Dan Stephenson <http://dan.io/>
Dan Watson <http://danwatson.net/>
dave@thebarproject.com
David Ascher <http://ascher.ca/>
...
...
django/contrib/admin/sites.py
Dosyayı görüntüle @
1206eea1
...
...
@@ -361,6 +361,7 @@ class AdminSite(object):
self
.
each_context
(
request
),
title
=
_
(
'Log in'
),
app_path
=
request
.
get_full_path
(),
username
=
request
.
user
.
get_username
(),
)
if
(
REDIRECT_FIELD_NAME
not
in
request
.
GET
and
REDIRECT_FIELD_NAME
not
in
request
.
POST
):
...
...
django/contrib/admin/templates/admin/login.html
Dosyayı görüntüle @
1206eea1
...
...
@@ -34,7 +34,7 @@
{% if user.is_authenticated %}
<p
class=
"errornote"
>
{% blocktrans
with username=request.user.get_username
trimmed %}
{% blocktrans trimmed %}
You are authenticated as {{ username }}, but are not authorized to
access this page. Would you like to login to a different account?
{% endblocktrans %}
...
...
docs/releases/1.9.7.txt
Dosyayı görüntüle @
1206eea1
...
...
@@ -9,4 +9,5 @@ Django 1.9.7 fixes several bugs in 1.9.6.
Bugfixes
========
* ...
* Removed the need for the ``request`` context processor on the admin login
page to fix a regression in 1.9 (:ticket:`26558`).
tests/admin_views/tests.py
Dosyayı görüntüle @
1206eea1
...
...
@@ -1279,7 +1279,20 @@ def get_perm(Model, perm):
return
Permission
.
objects
.
get
(
content_type
=
ct
,
codename
=
perm
)
@override_settings
(
ROOT_URLCONF
=
'admin_views.urls'
)
@override_settings
(
ROOT_URLCONF
=
'admin_views.urls'
,
# Test with the admin's documented list of required context processors.
TEMPLATES
=
[{
'BACKEND'
:
'django.template.backends.django.DjangoTemplates'
,
'APP_DIRS'
:
True
,
'OPTIONS'
:
{
'context_processors'
:
[
'django.contrib.auth.context_processors.auth'
,
'django.contrib.messages.context_processors.messages'
,
],
},
}],
)
class
AdminViewPermissionsTest
(
TestCase
):
"""Tests for Admin Views Permissions."""
...
...
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