Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
eee83e3a
authored
Jul 27, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: simplify Notification.send
parent
7eb6a33f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
+1
-3
circle/dashboard/models.py
+1
-3
No files found.
circle/dashboard/models.py
View file @
eee83e3a
...
@@ -70,9 +70,7 @@ class Notification(TimeStampedModel):
...
@@ -70,9 +70,7 @@ class Notification(TimeStampedModel):
def
send
(
cls
,
user
,
subject
,
template
,
context
,
def
send
(
cls
,
user
,
subject
,
template
,
context
,
valid_until
=
None
,
subject_context
=
None
):
valid_until
=
None
,
subject_context
=
None
):
hro
=
create_readable
(
template
,
user
=
user
,
**
context
)
hro
=
create_readable
(
template
,
user
=
user
,
**
context
)
if
subject_context
is
None
:
subject
=
create_readable
(
subject
,
**
(
subject_context
or
context
))
subject_context
=
context
subject
=
create_readable
(
subject
,
**
subject_context
)
return
cls
.
objects
.
create
(
to
=
user
,
return
cls
.
objects
.
create
(
to
=
user
,
subject_data
=
subject
.
to_dict
(),
subject_data
=
subject
.
to_dict
(),
message_data
=
hro
.
to_dict
(),
message_data
=
hro
.
to_dict
(),
...
...
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