def length(self, **kwargs):
        return self._distance_attribute('length', None, **kwargs)
Returns the length of the geometry field as a `Distance` object
dataset/ETHPy150Open django/django/django/contrib/gis/db/models/query.py/GeoQuerySet.length