Commits

Mikhail Korobov committed 8ced16c

Clarified readme. Fix #2.

Comments (0)

Files changed (1)

    {% easy_map address using 'map.html' %}
    {% easy_map address 200 300 5 using 'map.html' %}
 
-The template will have 'map' (it is the ``easy_maps.models.Address`` instance),
-'width', 'height' and 'zoom' variables. The outer template context is passed
+The template will have 'map' (it is the ``easy_maps.models.Address``
+instance auto-created for passed address on first access), 'width',
+'height' and 'zoom' variables. The outer template context is passed
 to rendered template as well.
 
 The default template can be found here:
 * latitude
 * geocode_error - True if geocoder wasn't able to handle the address
 
+Address model should be considered implementation detail. Its purpose is
+to avoid using geocoder for each request, that's a kind of persistent cache.
+It is included in readme because information about available data can
+be useful for custom map templates.
+
 Admin address preview
 =====================
 
 
     admin.site.register(Firm, FirmAdmin)
 
+'address' field should be a CharField or TextField.
 
 Contributing
 ============
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.