Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Discuss Data Project
Discuss Data
Commits
e6ca99d2
Commit
e6ca99d2
authored
Nov 25, 2020
by
felix.herrmann
Browse files
feat(mails): add task function for sending status mails to be called by django-q schedule
parent
f82da5ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
discuss_data/ddusers/models.py
View file @
e6ca99d2
...
...
@@ -324,6 +324,12 @@ class User(AbstractUser):
.
filter
(
timestamp__gte
=
enddate
)
)
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment