

def _transform(self, srid=None):
    (args, geo_field) = self._spatial_setup('transform')
    if (not srid):
        return args['geo_col']
    try:
        self.query.add_context('transformed_srid', srid)
    except AttributeError:
        self.query.transformed_srid = srid
    return ('%s(%s, %s)' % (self['function'], args['geo_col'], srid))

dataset/ETHPy150Open bkg/django-spillway/spillway/query.py GeoQuerySet._transform/VarMisuse@77/114 `args`->`self`