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
1e87c9fe
Kaydet (Commit)
1e87c9fe
authored
Eki 08, 2018
tarafından
Jon Dufresne
Kaydeden (comit)
Tim Graham
Eki 08, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Replaced kwargs.pop() with keyword-only arguments.
üst
2ba588e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
base.py
django/core/management/base.py
+3
-3
query_utils.py
django/db/models/query_utils.py
+2
-4
No files found.
django/core/management/base.py
Dosyayı görüntüle @
1e87c9fe
...
@@ -42,9 +42,9 @@ class CommandParser(ArgumentParser):
...
@@ -42,9 +42,9 @@ class CommandParser(ArgumentParser):
SystemExit in several occasions, as SystemExit is unacceptable when a
SystemExit in several occasions, as SystemExit is unacceptable when a
command is called programmatically.
command is called programmatically.
"""
"""
def
__init__
(
self
,
**
kwargs
):
def
__init__
(
self
,
*
,
missing_args_message
=
None
,
called_from_command_line
=
None
,
*
*
kwargs
):
self
.
missing_args_message
=
kwargs
.
pop
(
'missing_args_message'
,
None
)
self
.
missing_args_message
=
missing_args_message
self
.
called_from_command_line
=
kwargs
.
pop
(
'called_from_command_line'
,
None
)
self
.
called_from_command_line
=
called_from_command_line
super
()
.
__init__
(
**
kwargs
)
super
()
.
__init__
(
**
kwargs
)
def
parse_args
(
self
,
args
=
None
,
namespace
=
None
):
def
parse_args
(
self
,
args
=
None
,
namespace
=
None
):
...
...
django/db/models/query_utils.py
Dosyayı görüntüle @
1e87c9fe
...
@@ -55,10 +55,8 @@ class Q(tree.Node):
...
@@ -55,10 +55,8 @@ class Q(tree.Node):
default
=
AND
default
=
AND
conditional
=
True
conditional
=
True
def
__init__
(
self
,
*
args
,
**
kwargs
):
def
__init__
(
self
,
*
args
,
_connector
=
None
,
_negated
=
False
,
**
kwargs
):
connector
=
kwargs
.
pop
(
'_connector'
,
None
)
super
()
.
__init__
(
children
=
[
*
args
,
*
sorted
(
kwargs
.
items
())],
connector
=
_connector
,
negated
=
_negated
)
negated
=
kwargs
.
pop
(
'_negated'
,
False
)
super
()
.
__init__
(
children
=
[
*
args
,
*
sorted
(
kwargs
.
items
())],
connector
=
connector
,
negated
=
negated
)
def
_combine
(
self
,
other
,
conn
):
def
_combine
(
self
,
other
,
conn
):
if
not
isinstance
(
other
,
Q
):
if
not
isinstance
(
other
,
Q
):
...
...
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