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
e4a578e7
Kaydet (Commit)
e4a578e7
authored
Mar 12, 2015
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #24226 -- Changed admin EMPTY_CHANGELIST_VALUE from (None) to -
üst
b4d8b16e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
main.py
django/contrib/admin/views/main.py
+2
-2
1.9.txt
docs/releases/1.9.txt
+3
-0
tests.py
tests/admin_changelist/tests.py
+1
-1
No files found.
django/contrib/admin/views/main.py
Dosyayı görüntüle @
e4a578e7
...
...
@@ -20,7 +20,7 @@ from django.db import models
from
django.utils
import
six
from
django.utils.encoding
import
force_text
from
django.utils.http
import
urlencode
from
django.utils.translation
import
ugettext
,
ugettext_lazy
from
django.utils.translation
import
ugettext
# Changelist settings
ALL_VAR
=
'all'
...
...
@@ -34,7 +34,7 @@ IGNORED_PARAMS = (
ALL_VAR
,
ORDER_VAR
,
ORDER_TYPE_VAR
,
SEARCH_VAR
,
IS_POPUP_VAR
,
TO_FIELD_VAR
)
# Text to display within change-list table cells if the value is blank.
EMPTY_CHANGELIST_VALUE
=
ugettext_lazy
(
'(None)'
)
EMPTY_CHANGELIST_VALUE
=
'-'
class
ChangeList
(
object
):
...
...
docs/releases/1.9.txt
Dosyayı görüntüle @
e4a578e7
...
...
@@ -249,6 +249,9 @@ Miscellaneous
* CSS and images in ``contrib.admin`` to support Internet Explorer 6 & 7 have
been removed as these browsers have reached end-of-life.
* The text displayed for null columns in the admin changelist ``list_display``
cells has changed from ``(None)`` (or its translated equivalent) to ``-``.
* ``django.http.responses.REASON_PHRASES`` and
``django.core.handlers.wsgi.STATUS_CODE_TEXT`` have been removed. Use
Python's stdlib instead: :data:`http.client.responses` for Python 3 and
...
...
tests/admin_changelist/tests.py
Dosyayı görüntüle @
e4a578e7
...
...
@@ -95,7 +95,7 @@ class ChangeListTests(TestCase):
context
=
Context
({
'cl'
:
cl
})
table_output
=
template
.
render
(
context
)
link
=
reverse
(
'admin:admin_changelist_child_change'
,
args
=
(
new_child
.
id
,))
row_html
=
'<tbody><tr class="row1"><th class="field-name"><a href="
%
s">name</a></th><td class="field-parent nowrap">
(None)
</td></tr></tbody>'
%
link
row_html
=
'<tbody><tr class="row1"><th class="field-name"><a href="
%
s">name</a></th><td class="field-parent nowrap">
-
</td></tr></tbody>'
%
link
self
.
assertNotEqual
(
table_output
.
find
(
row_html
),
-
1
,
'Failed to find expected row element:
%
s'
%
table_output
)
...
...
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