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
7629a6bf
Commit
7629a6bf
authored
11 months ago
by
Bruno Martin
Browse files
Options
Download
Email Patches
Plain Diff
add test to check if there is a forum
parent
acdd5cae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
courses/signals.py
courses/signals.py
+8
-7
No files found.
courses/signals.py
View file @
7629a6bf
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
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