Skip to content

Commit

Permalink
Merge pull request makinacorpus#38 from willemarcel/master
Browse files Browse the repository at this point in the history
change 'fields' to 'properties' in code example
  • Loading branch information
leplatrem committed Sep 9, 2014
2 parents 59e092d + 2810df5 commit 503d149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Inherit generic views **only** if you need a reusable set of options :
# urls.py
from .views import MapLayer, MeetingLayer
...
url(r'^mushrooms.geojson$', MapLayer.as_view(model=MushroomSpot, fields=('name',)), name='mushrooms')
url(r'^mushrooms.geojson$', MapLayer.as_view(model=MushroomSpot, properties=('name',)), name='mushrooms')

Most common use-cases of reusable options are: low-fi precision, common list of fields between several views, etc.

Expand Down

0 comments on commit 503d149

Please sign in to comment.