

@cached_property
def raster_field(self):
    'Returns the raster FileField instance on the model.'
    for field in self.model._meta.fields:
        if isinstance(field, models.FileField):
            return field
    return False

dataset/ETHPy150Open bkg/django-spillway/spillway/query.py RasterQuerySet.raster_field/original