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
da5747f8
Kaydet (Commit)
da5747f8
authored
Eyl 14, 2015
tarafından
Daniel Hahler
Kaydeden (comit)
Tim Graham
Eyl 17, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #25400 -- Fixed regression in nonexistent features on gis backends.
üst
8550161e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
features.py
django/contrib/gis/db/backends/base/features.py
+2
-3
test_features.py
tests/backends/test_features.py
+8
-0
No files found.
django/contrib/gis/db/backends/base/features.py
Dosyayı görüntüle @
da5747f8
...
...
@@ -98,9 +98,8 @@ class BaseSpatialFeatures(object):
m
=
re
.
match
(
r'has_(\w*)_function$'
,
name
)
if
m
:
func_name
=
m
.
group
(
1
)
if
func_name
not
in
self
.
connection
.
ops
.
unsupported_functions
:
return
True
return
False
return
func_name
not
in
self
.
connection
.
ops
.
unsupported_functions
raise
AttributeError
def
has_ops_method
(
self
,
method
):
return
getattr
(
self
.
connection
.
ops
,
method
,
False
)
tests/backends/test_features.py
0 → 100644
Dosyayı görüntüle @
da5747f8
from
django.db
import
connection
from
django.test
import
TestCase
class
TestDatabaseFeatures
(
TestCase
):
def
test_nonexistent_feature
(
self
):
self
.
assertFalse
(
hasattr
(
connection
.
features
,
'nonexistent'
))
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