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
0907d3c6
Kaydet (Commit)
0907d3c6
authored
Ara 26, 2012
tarafından
Claude Paroz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #16408 -- Re-fixed value conversion with Spatialite backend
üst
9c5a6adf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
query.py
django/contrib/gis/db/models/sql/query.py
+2
-0
test_regress.py
django/contrib/gis/tests/geoapp/test_regress.py
+2
-1
No files found.
django/contrib/gis/db/models/sql/query.py
Dosyayı görüntüle @
0907d3c6
...
...
@@ -72,6 +72,8 @@ class GeoQuery(sql.Query):
value
=
Area
(
**
{
field
.
area_att
:
value
})
elif
isinstance
(
field
,
(
GeomField
,
GeometryField
))
and
value
:
value
=
Geometry
(
value
)
elif
field
is
not
None
:
return
super
(
GeoQuery
,
self
)
.
convert_values
(
value
,
field
,
connection
)
return
value
def
get_aggregation
(
self
,
using
):
...
...
django/contrib/gis/tests/geoapp/test_regress.py
Dosyayı görüntüle @
0907d3c6
...
...
@@ -5,7 +5,7 @@ from datetime import datetime
from
django.contrib.gis.tests.utils
import
no_mysql
,
no_spatialite
from
django.contrib.gis.shortcuts
import
render_to_kmz
from
django.db.models
import
Count
from
django.db.models
import
Count
,
Min
from
django.test
import
TestCase
from
.models
import
City
,
PennsylvaniaCity
,
State
,
Truth
...
...
@@ -50,6 +50,7 @@ class GeoRegressionTests(TestCase):
mansfield
=
PennsylvaniaCity
.
objects
.
create
(
name
=
'Mansfield'
,
county
=
'Tioga'
,
point
=
'POINT(-77.071445 41.823881)'
,
founded
=
founded
)
self
.
assertEqual
(
founded
,
PennsylvaniaCity
.
objects
.
dates
(
'founded'
,
'day'
)[
0
])
self
.
assertEqual
(
founded
,
PennsylvaniaCity
.
objects
.
aggregate
(
Min
(
'founded'
))[
'founded__min'
])
def
test_empty_count
(
self
):
"Testing that PostGISAdapter.__eq__ does check empty strings. See #13670."
...
...
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