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
c7a4ae94
Kaydet (Commit)
c7a4ae94
authored
May 18, 2014
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed some unnecessary exception naming; thanks claudep.
üst
ec9043ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
__init__.py
django/core/management/__init__.py
+2
-2
python.py
django/core/serializers/python.py
+2
-2
No files found.
django/core/management/__init__.py
Dosyayı görüntüle @
c7a4ae94
...
@@ -57,9 +57,9 @@ def find_management_module(app_name):
...
@@ -57,9 +57,9 @@ def find_management_module(app_name):
# of the app_name but the project directory itself isn't on the path.
# of the app_name but the project directory itself isn't on the path.
try
:
try
:
f
,
path
,
descr
=
imp
.
find_module
(
part
,
path
)
f
,
path
,
descr
=
imp
.
find_module
(
part
,
path
)
except
ImportError
as
e
:
except
ImportError
:
if
os
.
path
.
basename
(
os
.
getcwd
())
!=
part
:
if
os
.
path
.
basename
(
os
.
getcwd
())
!=
part
:
raise
e
raise
else
:
else
:
if
f
:
if
f
:
f
.
close
()
f
.
close
()
...
...
django/core/serializers/python.py
Dosyayı görüntüle @
c7a4ae94
...
@@ -92,11 +92,11 @@ def Deserializer(object_list, **options):
...
@@ -92,11 +92,11 @@ def Deserializer(object_list, **options):
# Look up the model and starting build a dict of data for it.
# Look up the model and starting build a dict of data for it.
try
:
try
:
Model
=
_get_model
(
d
[
"model"
])
Model
=
_get_model
(
d
[
"model"
])
except
base
.
DeserializationError
as
e
:
except
base
.
DeserializationError
:
if
ignore
:
if
ignore
:
continue
continue
else
:
else
:
raise
e
raise
data
=
{}
data
=
{}
if
'pk'
in
d
:
if
'pk'
in
d
:
data
[
Model
.
_meta
.
pk
.
attname
]
=
Model
.
_meta
.
pk
.
to_python
(
d
.
get
(
"pk"
,
None
))
data
[
Model
.
_meta
.
pk
.
attname
]
=
Model
.
_meta
.
pk
.
to_python
(
d
.
get
(
"pk"
,
None
))
...
...
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