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
effb4ed6
Kaydet (Commit)
effb4ed6
authored
Haz 09, 2016
tarafından
Michal Petrucha
Kaydeden (comit)
Tim Graham
Haz 09, 2016
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Replaced a hardcoded LOOKUP_SEP in models/fields/__init__.py
üst
37b36af6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
__init__.py
django/db/models/fields/__init__.py
+3
-2
No files found.
django/db/models/fields/__init__.py
Dosyayı görüntüle @
effb4ed6
...
...
@@ -20,6 +20,7 @@ from django.core import checks, exceptions, validators
# purposes.
from
django.core.exceptions
import
FieldDoesNotExist
# NOQA
from
django.db
import
connection
,
connections
,
router
from
django.db.models.constants
import
LOOKUP_SEP
from
django.db.models.query_utils
import
DeferredAttribute
,
RegisterLookupMixin
from
django.utils
import
six
,
timezone
from
django.utils.datastructures
import
DictWrapper
...
...
@@ -221,10 +222,10 @@ class Field(RegisterLookupMixin):
id
=
'fields.E001'
,
)
]
elif
'__'
in
self
.
name
:
elif
LOOKUP_SEP
in
self
.
name
:
return
[
checks
.
Error
(
'Field names must not contain "
__".'
,
'Field names must not contain "
%
s".'
%
(
LOOKUP_SEP
,)
,
obj
=
self
,
id
=
'fields.E002'
,
)
...
...
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