From e9f104d2ee51a053adec1d71ef4f65675697feed Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Sat, 7 Apr 2012 12:57:51 -0700 Subject: [PATCH] Adding follow date on subscriptions. Will need to add a model to show follows, comments, and reply notifications/interactions. --- apps/social/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/social/models.py b/apps/social/models.py index f791dbd41..dc8783328 100644 --- a/apps/social/models.py +++ b/apps/social/models.py @@ -21,7 +21,6 @@ from utils.feed_functions import relative_timesince from utils import json_functions as json - class MRequestInvite(mongo.Document): username = mongo.StringField() @@ -397,6 +396,7 @@ class MSocialSubscription(mongo.Document): user_id = mongo.IntField() subscription_user_id = mongo.IntField(unique_with='user_id') + follow_date = mongo.DateTimeField(default=datetime.datetime.utcnow()) last_read_date = mongo.DateTimeField(default=UNREAD_CUTOFF) mark_read_date = mongo.DateTimeField(default=UNREAD_CUTOFF) unread_count_neutral = mongo.IntField(default=0)