Commit 65c59fbb by Raphael Lullis

More updates to README.

parent 5884cffd
...@@ -186,14 +186,14 @@ the appropiates classes to work with them. One such example is ...@@ -186,14 +186,14 @@ the appropiates classes to work with them. One such example is
`GeoPoint`, where you store latitude and longitude `GeoPoint`, where you store latitude and longitude
~~~~~ {python} ~~~~~ {python}
from parse_rest.datatypes import Object from parse_rest.datatypes import Object, GeoPoint
class Restaurant(Object): class Restaurant(Object):
pass pass
restaurant = Restaurant(name="Los Pollos Hermanos") restaurant = Restaurant(name="Los Pollos Hermanos")
# coordinates as floats. # coordinates as floats.
restaurant.location = parse_rest.GeoPoint(latitude=12.0, longitude=-34.45) restaurant.location = GeoPoint(latitude=12.0, longitude=-34.45)
restaurant.save() restaurant.save()
~~~~~ ~~~~~
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment