Begin implementing support for replies, likes, and reposts - there's a DB field for storing the original post's URL, but it's not actually used yet

This commit is contained in:
Danielle McLean 2017-11-13 08:42:31 +11:00
parent 5d031f9e84
commit 28e4a71cae
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
3 changed files with 49 additions and 1 deletions

View file

@ -34,6 +34,11 @@ class Entry(ModelMeta, TimeStampedModel):
photo = models.ImageField(blank=True)
content = models.TextField()
# The URL of an entry (anywhere on the web) that should become an embedded
# h-cite. Can become a u-like-of, u-repost-of, or u-in-reply-to depending
# on the post type.
cite = models.CharField(max_length=255, blank=True)
author = models.ForeignKey(
get_user_model(),
related_name='entries',