1
0
mirror of https://github.com/django/django.git synced 2025-03-16 12:20:46 +00:00

[1.11.x] Clarified return value of NumGeometries GIS function.

Backport of 66bbde6819586cc3a75630e12e569dc8ae72f211 from master
This commit is contained in:
Sergey Fedoseev 2017-03-17 18:03:30 +05:00 committed by Tim Graham
parent 8ac03edd8d
commit 926b4427d2

View File

@ -397,7 +397,9 @@ Accepts a single geographic field or expression and returns the memory size
Accepts a single geographic field or expression and returns the number of
geometries if the geometry field is a collection (e.g., a ``GEOMETRYCOLLECTION``
or ``MULTI*`` field); otherwise returns ``None``.
or ``MULTI*`` field). Returns 1 for single geometries.
On MySQL, returns ``None`` for single geometries.
``NumPoints``
=============