Commit 9b6fdc37 authored by Matheus Miranda's avatar Matheus Miranda
Browse files

Remove typo on signal

parent 8a0c91fa
......@@ -18,7 +18,7 @@ def lesson_created_or_updated(sender, instance: Lesson, **kwargs):
previous_task_hask = ''
ct = ContentType.objects.get_for_model(instance)
st = ScheduledTask.objects.filter(Content_type=ct, object_id=instance.id)
st = ScheduledTask.objects.filter(content_type=ct, object_id=instance.id)
if st.exists():
previous_task_hask = st.task_hash
else:
......@@ -29,7 +29,7 @@ def lesson_created_or_updated(sender, instance: Lesson, **kwargs):
res.revoke()
new_task_hash = publish_lesson.apply_async(args=[instance.id], eta=instance.release_date)
st.task_hash = task_hash
st.task_hash = new_task_hash
st.content_object = instance
st.release_date = instance.release_date
st.save()
......
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