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
7c6efb32
Kaydet (Commit)
7c6efb32
authored
Kas 05, 2016
tarafından
Adam Chainz
Kaydeden (comit)
Tim Graham
Kas 15, 2016
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Refs #26753 -- Removed obsolete workarounds in GIS tests for lack of GDAL.
Missed in
f7a363ee
.
üst
9da45ff3
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
14 additions
and
47 deletions
+14
-47
models.py
tests/gis_tests/distapp/models.py
+1
-1
models.py
tests/gis_tests/geo3d/models.py
+1
-2
models.py
tests/gis_tests/geoadmin/models.py
+1
-1
models.py
tests/gis_tests/geoapp/models.py
+1
-1
models.py
tests/gis_tests/geogapp/models.py
+1
-2
0001_initial.py
tests/gis_tests/gis_migrations/migrations/0001_initial.py
+5
-6
models.py
tests/gis_tests/inspectapp/models.py
+1
-1
models.py
tests/gis_tests/layermap/models.py
+1
-2
models.py
tests/gis_tests/models.py
+0
-27
models.py
tests/gis_tests/rasterapp/models.py
+1
-2
models.py
tests/gis_tests/relatedapp/models.py
+1
-2
No files found.
tests/gis_tests/distapp/models.py
Dosyayı görüntüle @
7c6efb32
from
django.contrib.gis.db
import
models
from
django.utils.encoding
import
python_2_unicode_compatible
from
..models
import
models
from
..utils
import
gisfield_may_be_null
...
...
tests/gis_tests/geo3d/models.py
Dosyayı görüntüle @
7c6efb32
from
django.contrib.gis.db
import
models
from
django.utils.encoding
import
python_2_unicode_compatible
from
..models
import
models
@python_2_unicode_compatible
class
NamedModel
(
models
.
Model
):
...
...
tests/gis_tests/geoadmin/models.py
Dosyayı görüntüle @
7c6efb32
from
django.contrib.gis.db
import
models
from
django.utils.encoding
import
python_2_unicode_compatible
from
..admin
import
admin
from
..models
import
models
@python_2_unicode_compatible
...
...
tests/gis_tests/geoapp/models.py
Dosyayı görüntüle @
7c6efb32
from
django.contrib.gis.db
import
models
from
django.utils.encoding
import
python_2_unicode_compatible
from
..models
import
models
from
..utils
import
gisfield_may_be_null
...
...
tests/gis_tests/geogapp/models.py
Dosyayı görüntüle @
7c6efb32
from
django.contrib.gis.db
import
models
from
django.utils.encoding
import
python_2_unicode_compatible
from
..models
import
models
@python_2_unicode_compatible
class
NamedModel
(
models
.
Model
):
...
...
tests/gis_tests/gis_migrations/migrations/0001_initial.py
Dosyayı görüntüle @
7c6efb32
from
django.db
import
connection
,
migrations
,
models
from
...models
import
models
as
gis_models
from
django.contrib.gis.db
import
models
from
django.db
import
connection
,
migrations
ops
=
[
migrations
.
CreateModel
(
...
...
@@ -8,7 +7,7 @@ ops = [
fields
=
[
(
'id'
,
models
.
AutoField
(
verbose_name
=
'ID'
,
serialize
=
False
,
auto_created
=
True
,
primary_key
=
True
)),
(
'name'
,
models
.
CharField
(
max_length
=
100
,
unique
=
True
)),
(
'geom'
,
gis_
models
.
MultiPolygonField
(
srid
=
4326
)),
(
'geom'
,
models
.
MultiPolygonField
(
srid
=
4326
)),
],
options
=
{
'required_db_features'
:
[
'gis_enabled'
],
...
...
@@ -27,7 +26,7 @@ ops = [
)),
(
'address'
,
models
.
CharField
(
max_length
=
100
)),
(
'zip_code'
,
models
.
IntegerField
(
null
=
True
,
blank
=
True
)),
(
'geom'
,
gis_
models
.
PointField
(
srid
=
4326
,
geography
=
True
)),
(
'geom'
,
models
.
PointField
(
srid
=
4326
,
geography
=
True
)),
],
options
=
{
'required_db_features'
:
[
'gis_enabled'
],
...
...
@@ -59,7 +58,7 @@ if connection.features.gis_enabled and connection.features.supports_raster:
fields
=
[
(
'id'
,
models
.
AutoField
(
verbose_name
=
'ID'
,
serialize
=
False
,
auto_created
=
True
,
primary_key
=
True
)),
(
'name'
,
models
.
CharField
(
max_length
=
100
,
unique
=
True
)),
(
'rast'
,
gis_
models
.
fields
.
RasterField
(
srid
=
4326
)),
(
'rast'
,
models
.
fields
.
RasterField
(
srid
=
4326
)),
],
options
=
{
},
...
...
tests/gis_tests/inspectapp/models.py
Dosyayı görüntüle @
7c6efb32
from
..models
import
models
from
django.contrib.gis.db
import
models
class
AllOGRFields
(
models
.
Model
):
...
...
tests/gis_tests/layermap/models.py
Dosyayı görüntüle @
7c6efb32
from
django.contrib.gis.db
import
models
from
django.utils.encoding
import
python_2_unicode_compatible
from
..models
import
models
@python_2_unicode_compatible
class
NamedModel
(
models
.
Model
):
...
...
tests/gis_tests/models.py
Dosyayı görüntüle @
7c6efb32
from
django.core.exceptions
import
ImproperlyConfigured
from
django.db
import
models
class
DummyField
(
models
.
Field
):
def
__init__
(
self
,
dim
=
None
,
srid
=
None
,
geography
=
None
,
spatial_index
=
True
,
*
args
,
**
kwargs
):
super
(
DummyField
,
self
)
.
__init__
(
*
args
,
**
kwargs
)
try
:
from
django.contrib.gis.db
import
models
# Store a version of the original raster field for testing the exception
# raised if GDAL isn't installed.
models
.
OriginalRasterField
=
models
.
RasterField
except
ImproperlyConfigured
:
models
.
GeometryField
=
DummyField
models
.
LineStringField
=
DummyField
models
.
MultiPointField
=
DummyField
models
.
MultiPolygonField
=
DummyField
models
.
PointField
=
DummyField
models
.
PolygonField
=
DummyField
models
.
RasterField
=
DummyField
try
:
models
.
RasterField
()
except
ImproperlyConfigured
:
models
.
RasterField
=
DummyField
tests/gis_tests/rasterapp/models.py
Dosyayı görüntüle @
7c6efb32
from
django.contrib.gis.db
import
models
from
django.contrib.gis.gdal
import
HAS_GDAL
from
..models
import
models
if
HAS_GDAL
:
class
RasterModel
(
models
.
Model
):
rast
=
models
.
RasterField
(
'A Verbose Raster Name'
,
null
=
True
,
srid
=
4326
,
spatial_index
=
True
,
blank
=
True
)
...
...
tests/gis_tests/relatedapp/models.py
Dosyayı görüntüle @
7c6efb32
from
django.contrib.gis.db
import
models
from
django.utils.encoding
import
python_2_unicode_compatible
from
..models
import
models
class
SimpleModel
(
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