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
1b8d7eff
Kaydet (Commit)
1b8d7eff
authored
Agu 19, 2015
tarafından
Jani Tiainen
Kaydeden (comit)
Tim Graham
Agu 19, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Refs #12400 -- Added supports_geometry_field_unique_index GIS db feature.
üst
bda408f6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
features.py
django/contrib/gis/db/backends/base/features.py
+3
-0
features.py
django/contrib/gis/db/backends/oracle/features.py
+1
-0
models.py
tests/gis_tests/geoapp/models.py
+1
-1
No files found.
django/contrib/gis/db/backends/base/features.py
Dosyayı görüntüle @
1b8d7eff
...
...
@@ -40,6 +40,9 @@ class BaseSpatialFeatures(object):
# Does the database have raster support?
supports_raster
=
False
# Does the database support a unique index on geometry fields?
supports_geometry_field_unique_index
=
True
@property
def
supports_bbcontains_lookup
(
self
):
return
'bbcontains'
in
self
.
connection
.
ops
.
gis_operators
...
...
django/contrib/gis/db/backends/oracle/features.py
Dosyayı görüntüle @
1b8d7eff
...
...
@@ -6,3 +6,4 @@ from django.db.backends.oracle.features import \
class
DatabaseFeatures
(
BaseSpatialFeatures
,
OracleDatabaseFeatures
):
supports_add_srs_entry
=
False
supports_geometry_field_introspection
=
False
supports_geometry_field_unique_index
=
False
tests/gis_tests/geoapp/models.py
Dosyayı görüntüle @
1b8d7eff
...
...
@@ -63,7 +63,7 @@ class MultiFields(NamedModel):
class
Meta
:
unique_together
=
(
'city'
,
'point'
)
required_db_features
=
[
'gis_enabled'
]
required_db_features
=
[
'gis_enabled'
,
'supports_geometry_field_unique_index'
]
class
Truth
(
models
.
Model
):
...
...
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