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
36a17be9
Kaydet (Commit)
36a17be9
authored
Mar 04, 2015
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #24426 -- Displayed admin actions panel when show_full_result_count=False.
üst
fe42bfaa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
main.py
django/contrib/admin/views/main.py
+1
-1
tests.py
tests/admin_views/tests.py
+1
-0
No files found.
django/contrib/admin/views/main.py
Dosyayı görüntüle @
36a17be9
...
...
@@ -203,7 +203,7 @@ class ChangeList(object):
self
.
show_full_result_count
=
self
.
model_admin
.
show_full_result_count
# Admin actions are shown if there is at least one entry
# or if entries are not counted because show_full_result_count is disabled
self
.
show_admin_actions
=
self
.
show_full_result_count
or
bool
(
full_result_count
)
self
.
show_admin_actions
=
not
self
.
show_full_result_count
or
bool
(
full_result_count
)
self
.
full_result_count
=
full_result_count
self
.
result_list
=
result_list
self
.
can_show_all
=
can_show_all
...
...
tests/admin_views/tests.py
Dosyayı görüntüle @
36a17be9
...
...
@@ -2657,6 +2657,7 @@ class AdminSearchTest(TestCase):
self
.
assertContains
(
response
,
"""<span class="small quiet">1 result (<a href="?">Show all</a>)</span>"""
,
html
=
True
)
self
.
assertTrue
(
response
.
context
[
'cl'
]
.
show_admin_actions
)
@override_settings
(
PASSWORD_HASHERS
=
[
'django.contrib.auth.hashers.SHA1PasswordHasher'
],
...
...
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