@cached_property
    def raster_field(self):
        for field in self.model._meta.fields:
            if isinstance(field, models.FileField):
                return field
        return False
Returns the raster FileField instance on the model.
dataset/ETHPy150Open bkg/django-spillway/spillway/query.py/RasterQuerySet.raster_field