Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
MOOC packages by hacklab
django-courses
Commits
03a63c58
Commit
03a63c58
authored
Dec 13, 2021
by
Matheus Miranda
Browse files
Comment django signal for publishing messages
parent
77d9a781
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
courses/signals.py
courses/signals.py
+3
-3
No files found.
courses/signals.py
View file @
03a63c58
...
...
@@ -76,6 +76,6 @@ def post_unit_created_or_updated(sender, instance: Lesson, **kwargs):
create_first_task
(
instance
)
@
receiver
(
post_save
,
sender
=
ProfessorMessage
)
def
post_professor_message_created
(
sender
,
instance
:
ProfessorMessage
,
**
kwargs
):
publish_message
.
apply_async
(
args
=
[
instance
.
id
],
eta
=
instance
.
release_date
)
#
@receiver(post_save, sender=ProfessorMessage)
#
def post_professor_message_created(sender, instance: ProfessorMessage, **kwargs):
#
publish_message.apply_async(args=[instance.id], eta=instance.release_date)
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