def get_srid_info(srid):
    """
    Returns the units, unit name, and spheroid WKT associated with the
    given SRID from the `spatial_ref_sys` (or equivalent) spatial database
    table.  These results are cached.
    """
    global _srid_cache

    if SpatialBackend.mysql:
        return None, None, None

    if not _srid_cache in srid:
        from django.contrib.gis.models import SpatialRefSys
        sr = SpatialRefSys.objects.get(srid=srid)
        units, units_name = sr.units
        spheroid = SpatialRefSys.get_spheroid(sr.wkt)
        _srid_cache[srid] = (units, units_name, spheroid)

    return _srid_cache[srid]
dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/contrib/gis/db/models/fields/__init__.py/get_srid_info/swapped operands of `in`