Models#

The news app has one model: News.

News#

A single news article tied to an Item. Stores the article’s title, description, hero image, URL, publication datetime, and a flag for video content.

Uniqueness is enforced on (item, url) – the same URL can’t be recorded twice for one item – and the table carries an index on (item, date) for the per-item news listings.

class richy.news.models.News(id, item, title, description, image, url, date, is_video, is_new)[source]#

Bases: Model