images

class gratipay.utils.images.HasImage[source]

Mixin for models to store an image.

Assumes these fields:

image_oid_original oid DEFAULT 0 NOT NULL, image_oid_large oid DEFAULT 0 NOT NULL, image_oid_small oid DEFAULT 0 NOT NULL, image_type supported_image_types,