rss.models
rss.models
Defines the database models
Feed
Bases: Model
Represents a known feed entry
Source code in rss/models.py
acct_uri = fields.CharField(max_length=255, unique=True)
class-attribute
instance-attribute
The acct-uri associated with this actor
actor_id = fields.CharField(max_length=255, unique=True)
class-attribute
instance-attribute
actor_id corresponding to the feed. The actor is managed by cattle_grid
title = fields.CharField(max_length=255)
class-attribute
instance-attribute
feed title
url = fields.CharField(max_length=255, unique=True)
class-attribute
instance-attribute
url of the feed
FeedEntry
Bases: Model
Represents a syndicated entry of the feed
Source code in rss/models.py
entry_id = fields.CharField(max_length=255)
class-attribute
instance-attribute
The id of the feed entry
feed = fields.ForeignKeyField('rss_models.Feed', related_name='entries')
class-attribute
instance-attribute
The feed this entry belongs to
StoredObject
Bases: Model
ActivityPub object for each feed item
Source code in rss/models.py
data = fields.JSONField()
class-attribute
instance-attribute
The feed item data as json
id = fields.CharField(max_length=255, primary_key=True)
class-attribute
instance-attribute
URI of the object