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
573f44d6
Kaydet (Commit)
573f44d6
authored
Ock 11, 2019
tarafından
orlnub123
Kaydeden (comit)
Tim Graham
Ock 12, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #30057 -- Fixed diffsettings ignoring custom configured settings.
Regression in
49b67937
.
üst
abf8e390
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
diffsettings.py
django/core/management/commands/diffsettings.py
+2
-2
configured_settings_manage.py
tests/admin_scripts/configured_settings_manage.py
+1
-1
tests.py
tests/admin_scripts/tests.py
+1
-1
No files found.
django/core/management/commands/diffsettings.py
Dosyayı görüntüle @
573f44d6
from
django.core.management.base
import
BaseCommand
from
django.core.management.base
import
BaseCommand
def
module_to_dict
(
module
,
omittable
=
lambda
k
:
k
.
startswith
(
'_'
)):
def
module_to_dict
(
module
,
omittable
=
lambda
k
:
k
.
startswith
(
'_'
)
or
not
k
.
isupper
()
):
"""Convert a module namespace to a Python dictionary."""
"""Convert a module namespace to a Python dictionary."""
return
{
k
:
repr
(
v
)
for
k
,
v
in
module
.
__dict__
.
items
(
)
if
not
omittable
(
k
)}
return
{
k
:
repr
(
getattr
(
module
,
k
))
for
k
in
dir
(
module
)
if
not
omittable
(
k
)}
class
Command
(
BaseCommand
):
class
Command
(
BaseCommand
):
...
...
tests/admin_scripts/configured_settings_manage.py
Dosyayı görüntüle @
573f44d6
...
@@ -5,5 +5,5 @@ from django.conf import settings
...
@@ -5,5 +5,5 @@ from django.conf import settings
from
django.core.management
import
execute_from_command_line
from
django.core.management
import
execute_from_command_line
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
settings
.
configure
(
DEBUG
=
True
)
settings
.
configure
(
DEBUG
=
True
,
CUSTOM
=
1
)
execute_from_command_line
(
sys
.
argv
)
execute_from_command_line
(
sys
.
argv
)
tests/admin_scripts/tests.py
Dosyayı görüntüle @
573f44d6
...
@@ -2236,7 +2236,7 @@ class DiffSettings(AdminScriptTestCase):
...
@@ -2236,7 +2236,7 @@ class DiffSettings(AdminScriptTestCase):
def
test_settings_configured
(
self
):
def
test_settings_configured
(
self
):
out
,
err
=
self
.
run_manage
([
'diffsettings'
],
configured_settings
=
True
)
out
,
err
=
self
.
run_manage
([
'diffsettings'
],
configured_settings
=
True
)
self
.
assertNoOutput
(
err
)
self
.
assertNoOutput
(
err
)
self
.
assertOutput
(
out
,
'DEBUG = True'
)
self
.
assertOutput
(
out
,
'
CUSTOM = 1 ###
\n
DEBUG = True'
)
def
test_all
(
self
):
def
test_all
(
self
):
"""The all option also shows settings with the default value."""
"""The all option also shows settings with the default value."""
...
...
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