Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django pointfield value format for fixtures

[
    {
    "model": "myapp.Location",
    "pk": 1,
    "fields": {
        "name": "Location Number 1",
        "point": "POINT (30 10)",
    }
  }
]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #pointfield #format #fixtures
ADD COMMENT
Topic
Name
5+4 =