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
683341db
Kaydet (Commit)
683341db
authored
Mar 03, 2018
tarafından
Daniel Hahler
Kaydeden (comit)
Tim Graham
Mar 03, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Condensed some widgets code.
üst
3d8fadad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
12 deletions
+4
-12
widgets.py
django/contrib/admin/widgets.py
+1
-4
widgets.py
django/forms/widgets.py
+3
-8
No files found.
django/contrib/admin/widgets.py
Dosyayı görüntüle @
683341db
...
@@ -389,10 +389,7 @@ class AutocompleteMixin:
...
@@ -389,10 +389,7 @@ class AutocompleteMixin:
self
.
admin_site
=
admin_site
self
.
admin_site
=
admin_site
self
.
db
=
using
self
.
db
=
using
self
.
choices
=
choices
self
.
choices
=
choices
if
attrs
is
not
None
:
self
.
attrs
=
{}
if
attrs
is
None
else
attrs
.
copy
()
self
.
attrs
=
attrs
.
copy
()
else
:
self
.
attrs
=
{}
def
get_url
(
self
):
def
get_url
(
self
):
model
=
self
.
rel
.
model
model
=
self
.
rel
.
model
...
...
django/forms/widgets.py
Dosyayı görüntüle @
683341db
...
@@ -161,10 +161,8 @@ def media_property(cls):
...
@@ -161,10 +161,8 @@ def media_property(cls):
for
medium
in
extend
:
for
medium
in
extend
:
m
=
m
+
base
[
medium
]
m
=
m
+
base
[
medium
]
return
m
+
Media
(
definition
)
return
m
+
Media
(
definition
)
else
:
return
Media
(
definition
)
return
Media
(
definition
)
return
base
else
:
return
base
return
property
(
_media
)
return
property
(
_media
)
...
@@ -188,10 +186,7 @@ class Widget(metaclass=MediaDefiningClass):
...
@@ -188,10 +186,7 @@ class Widget(metaclass=MediaDefiningClass):
supports_microseconds
=
True
supports_microseconds
=
True
def
__init__
(
self
,
attrs
=
None
):
def
__init__
(
self
,
attrs
=
None
):
if
attrs
is
not
None
:
self
.
attrs
=
{}
if
attrs
is
None
else
attrs
.
copy
()
self
.
attrs
=
attrs
.
copy
()
else
:
self
.
attrs
=
{}
def
__deepcopy__
(
self
,
memo
):
def
__deepcopy__
(
self
,
memo
):
obj
=
copy
.
copy
(
self
)
obj
=
copy
.
copy
(
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