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
92bc7272
Kaydet (Commit)
92bc7272
authored
7 years ago
tarafından
Jon Dufresne
Kaydeden (comit)
Tim Graham
7 years ago
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Replaced temporary lists used for passing arguments with iterables.
üst
309c10c2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
6 deletions
+9
-6
checks.py
django/contrib/admin/checks.py
+0
-0
registry.py
django/core/checks/registry.py
+4
-1
makemigrations.py
django/core/management/commands/makemigrations.py
+1
-1
widgets.py
django/forms/widgets.py
+3
-3
context_processors.py
django/template/context_processors.py
+1
-1
No files found.
django/contrib/admin/checks.py
Dosyayı görüntüle @
92bc7272
This diff is collapsed.
Click to expand it.
django/core/checks/registry.py
Dosyayı görüntüle @
92bc7272
...
...
@@ -86,7 +86,10 @@ class CheckRegistry:
return
tag
in
self
.
tags_available
(
include_deployment_checks
)
def
tags_available
(
self
,
deployment_checks
=
False
):
return
set
(
chain
(
*
[
check
.
tags
for
check
in
self
.
get_checks
(
deployment_checks
)
if
hasattr
(
check
,
'tags'
)]))
return
set
(
chain
.
from_iterable
(
check
.
tags
for
check
in
self
.
get_checks
(
deployment_checks
)
if
hasattr
(
check
,
'tags'
)
))
def
get_checks
(
self
,
include_deployment_checks
=
False
):
checks
=
list
(
self
.
registered_checks
)
...
...
This diff is collapsed.
Click to expand it.
django/core/management/commands/makemigrations.py
Dosyayı görüntüle @
92bc7272
...
...
@@ -244,7 +244,7 @@ class Command(BaseCommand):
def
all_items_equal
(
seq
):
return
all
(
item
==
seq
[
0
]
for
item
in
seq
[
1
:])
merge_migrations_generations
=
zip
(
*
[
m
.
ancestry
for
m
in
merge_migrations
]
)
merge_migrations_generations
=
zip
(
*
(
m
.
ancestry
for
m
in
merge_migrations
)
)
common_ancestor_count
=
sum
(
1
for
common_ancestor_generation
in
takewhile
(
all_items_equal
,
merge_migrations_generations
))
if
not
common_ancestor_count
:
...
...
This diff is collapsed.
Click to expand it.
django/forms/widgets.py
Dosyayı görüntüle @
92bc7272
...
...
@@ -51,7 +51,7 @@ class Media:
return
self
.
render
()
def
render
(
self
):
return
mark_safe
(
'
\n
'
.
join
(
chain
(
*
[
getattr
(
self
,
'render_'
+
name
)()
for
name
in
MEDIA_TYPES
]
)))
return
mark_safe
(
'
\n
'
.
join
(
chain
.
from_iterable
(
getattr
(
self
,
'render_'
+
name
)()
for
name
in
MEDIA_TYPES
)))
def
render_js
(
self
):
return
[
...
...
@@ -65,12 +65,12 @@ class Media:
# To keep rendering order consistent, we can't just iterate over items().
# We need to sort the keys, and iterate over the sorted list.
media
=
sorted
(
self
.
_css
.
keys
())
return
chain
(
*
[
[
return
chain
.
from_iterable
(
[
format_html
(
'<link href="{}" type="text/css" media="{}" rel="stylesheet" />'
,
self
.
absolute_path
(
path
),
medium
)
for
path
in
self
.
_css
[
medium
]
]
for
medium
in
media
]
)
]
for
medium
in
media
)
def
absolute_path
(
self
,
path
):
"""
...
...
This diff is collapsed.
Click to expand it.
django/template/context_processors.py
Dosyayı görüntüle @
92bc7272
...
...
@@ -43,7 +43,7 @@ def debug(request):
# Return a lazy reference that computes connection.queries on access,
# to ensure it contains queries triggered after this function runs.
context_extras
[
'sql_queries'
]
=
lazy
(
lambda
:
list
(
itertools
.
chain
(
*
[
connections
[
x
]
.
queries
for
x
in
connections
]
)),
lambda
:
list
(
itertools
.
chain
.
from_iterable
(
connections
[
x
]
.
queries
for
x
in
connections
)),
list
)
return
context_extras
...
...
This diff is collapsed.
Click to expand it.
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