Commit 7629a6bf authored by Bruno Martin's avatar Bruno Martin
Browse files

add test to check if there is a forum

parent acdd5cae
......@@ -284,13 +284,14 @@ def course_created_or_updated(sender, created, instance, **kwargs):
else:
forum = instance.forum
title=instance.name
forum.title_en = instance.name_en
forum.title_es = instance.name_es
forum.title_pt_br = instance.name_pt_br
forum.is_public=instance.is_public
forum.groups.set(instance.groups.all())
forum.save()
if instance.forum:
title=instance.name
forum.title_en = instance.name_en
forum.title_es = instance.name_es
forum.title_pt_br = instance.name_pt_br
forum.is_public=instance.is_public
forum.groups.set(instance.groups.all())
forum.save()
# the course has a different logic for the release date, as it must
# create de event only when is in the published state
......
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