Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
flask-admin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
flask-admin
Commits
113e0d85
Unverified
Commit
113e0d85
authored
Apr 11, 2019
by
Serge S. Koval
Committed by
GitHub
Apr 11, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1786 from TomGoBravo/jsoncase
Use consistent case for func.ST_AsGeoJSON
parents
25442937
9f29d1e7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
fields.py
flask_admin/contrib/geoa/fields.py
+2
-2
No files found.
flask_admin/contrib/geoa/fields.py
View file @
113e0d85
...
...
@@ -31,10 +31,10 @@ class GeoJSONField(JSONField):
return
self
.
raw_data
[
0
]
if
type
(
self
.
data
)
is
geoalchemy2
.
elements
.
WKBElement
:
if
self
.
srid
==
-
1
:
return
self
.
session
.
scalar
(
func
.
ST_AsGeoJ
son
(
self
.
data
))
return
self
.
session
.
scalar
(
func
.
ST_AsGeoJ
SON
(
self
.
data
))
else
:
return
self
.
session
.
scalar
(
func
.
ST_AsGeoJ
son
(
func
.
ST_AsGeoJ
SON
(
func
.
ST_Transform
(
self
.
data
,
self
.
web_srid
)
)
)
...
...
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