Model reference

This is the public API for rembrant.

Warning

This API may change at any time. When rembrant reaches 1.0.0, the API will become stable.

Photo model

class Photo

This class contains all the information and metadata about a single photo.

title

The title for the photo.

filename

The photo’s filename.

caption

The photo’s caption.

sha

A hexdigest of a SHA hash of the original image file.

small_thumb

A filename of the small thumbnail. 100px wide by default.

big_thumb

A filename of the big thumbnail. 800px wide by default.

to_json()

Return a Python dictionary representing the Photo instance suitable for serialization into JSON. Related objects are represented as lists of primary keys.

Project Versions

Table Of Contents

Previous topic

Configuration

This Page