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
74742aa9
Kaydet (Commit)
74742aa9
authored
Kas 21, 2016
tarafından
Adam Chainz
Kaydeden (comit)
Tim Graham
Kas 21, 2016
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #27512 -- Removed unused code in Model.__init__().
üst
9d424641
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
base.py
django/db/models/base.py
+1
-5
No files found.
django/db/models/base.py
Dosyayı görüntüle @
74742aa9
...
...
@@ -21,8 +21,7 @@ from django.db.models.constants import LOOKUP_SEP
from
django.db.models.deletion
import
CASCADE
,
Collector
from
django.db.models.fields
import
AutoField
from
django.db.models.fields.related
import
(
ForeignObjectRel
,
ManyToOneRel
,
OneToOneField
,
lazy_related_operation
,
resolve_relation
,
ForeignObjectRel
,
OneToOneField
,
lazy_related_operation
,
resolve_relation
,
)
from
django.db.models.manager
import
Manager
from
django.db.models.options
import
Options
...
...
@@ -494,9 +493,6 @@ class Model(six.with_metaclass(ModelBase)):
continue
setattr
(
self
,
field
.
attname
,
val
)
kwargs
.
pop
(
field
.
name
,
None
)
# Maintain compatibility with existing calls.
if
isinstance
(
field
.
remote_field
,
ManyToOneRel
):
kwargs
.
pop
(
field
.
attname
,
None
)
# Now we're left with the unprocessed fields that *must* come from
# keywords, or default.
...
...
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