Commit e6ca99d2 authored by felix.herrmann's avatar felix.herrmann
Browse files

feat(mails): add task function for sending status mails to be called by django-q schedule

parent f82da5ac
......@@ -324,6 +324,12 @@ class User(AbstractUser):
def compose_status_email(self):
feed_actions = self.get_user_actions_recent_weekly()
return render_to_string(
"ddusers/status_email.html", {"user": self, "feed_actions": feed_actions}
def get_following(self):
return following(self, User)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment