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
18bc708f
Commit
18bc708f
authored
Dec 07, 2021
by
Matheus Miranda
Browse files
Fix query on signal
parent
9b6fdc37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
courses/signals.py
courses/signals.py
+1
-0
No files found.
courses/signals.py
View file @
18bc708f
...
...
@@ -20,6 +20,7 @@ def lesson_created_or_updated(sender, instance: Lesson, **kwargs):
st
=
ScheduledTask
.
objects
.
filter
(
content_type
=
ct
,
object_id
=
instance
.
id
)
if
st
.
exists
():
st
=
st
.
first
()
previous_task_hask
=
st
.
task_hash
else
:
st
=
ScheduledTask
.
objects
.
create
(
content_object
=
instance
)
...
...
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