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
c31c2c92
Kaydet (Commit)
c31c2c92
authored
Ara 24, 2012
tarafından
Luke Plant
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Made admin generated changelist URLs independent of dict ordering
üst
6b9f1302
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
main.py
django/contrib/admin/views/main.py
+1
-1
tests.py
tests/regressiontests/admin_filters/tests.py
+2
-2
tests.py
tests/regressiontests/admin_views/tests.py
+5
-5
No files found.
django/contrib/admin/views/main.py
Dosyayı görüntüle @
c31c2c92
...
...
@@ -158,7 +158,7 @@ class ChangeList(object):
del
p
[
k
]
else
:
p
[
k
]
=
v
return
'?
%
s'
%
urlencode
(
p
)
return
'?
%
s'
%
urlencode
(
sorted
(
p
.
items
())
)
def
get_results
(
self
,
request
):
paginator
=
self
.
model_admin
.
get_paginator
(
request
,
self
.
query_set
,
self
.
list_per_page
)
...
...
tests/regressiontests/admin_filters/tests.py
Dosyayı görüntüle @
c31c2c92
...
...
@@ -534,13 +534,13 @@ class ListFiltersTests(TestCase):
choices
=
list
(
filterspec
.
choices
(
changelist
))
self
.
assertEqual
(
choices
[
3
][
'display'
],
'the 2000
\'
s'
)
self
.
assertEqual
(
choices
[
3
][
'selected'
],
True
)
self
.
assertEqual
(
choices
[
3
][
'query_string'
],
'?
publication-decade=the+00s&author__id__exact=
%
s'
%
self
.
alfred
.
pk
)
self
.
assertEqual
(
choices
[
3
][
'query_string'
],
'?
author__id__exact=
%
s&publication-decade=the+00
s'
%
self
.
alfred
.
pk
)
filterspec
=
changelist
.
get_filters
(
request
)[
0
][
0
]
self
.
assertEqual
(
force_text
(
filterspec
.
title
),
'Verbose Author'
)
choice
=
select_by
(
filterspec
.
choices
(
changelist
),
"display"
,
"alfred"
)
self
.
assertEqual
(
choice
[
'selected'
],
True
)
self
.
assertEqual
(
choice
[
'query_string'
],
'?
publication-decade=the+00s&author__id__exact=
%
s'
%
self
.
alfred
.
pk
)
self
.
assertEqual
(
choice
[
'query_string'
],
'?
author__id__exact=
%
s&publication-decade=the+00
s'
%
self
.
alfred
.
pk
)
def
test_listfilter_without_title
(
self
):
"""
...
...
tests/regressiontests/admin_views/tests.py
Dosyayı görüntüle @
c31c2c92
...
...
@@ -3545,14 +3545,14 @@ class DateHierarchyTests(TestCase):
def
assert_contains_month_link
(
self
,
response
,
date
):
self
.
assertContains
(
response
,
'?release_date__
year=
%
d&release_date__month
=
%
d"'
%
(
date
.
year
,
date
.
month
))
response
,
'?release_date__
month=
%
d&release_date__year
=
%
d"'
%
(
date
.
month
,
date
.
year
))
def
assert_contains_day_link
(
self
,
response
,
date
):
self
.
assertContains
(
response
,
'?release_date__
year
=
%
d&'
'release_date__month=
%
d&release_date__
day
=
%
d"'
%
(
date
.
year
,
date
.
month
,
date
.
day
))
response
,
'?release_date__
day
=
%
d&'
'release_date__month=
%
d&release_date__
year
=
%
d"'
%
(
date
.
day
,
date
.
month
,
date
.
year
))
def
test_empty
(
self
):
"""
...
...
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