From 2810df5e21d4e1a6cfaaa6347f9f76b9de76c033 Mon Sep 17 00:00:00 2001 From: Wille Marcel Date: Mon, 8 Sep 2014 22:38:38 -0300 Subject: [PATCH] change 'fields' to 'properties' in code example --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 8ffa162..fef48db 100644 --- a/README.rst +++ b/README.rst @@ -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.