Commit f3279997 authored by Bruno Martin's avatar Bruno Martin
Browse files

compatibility with django>2

parent 890228d6
......@@ -448,7 +448,7 @@ class LessonSerializer(serializers.ModelSerializer):
activity.unit = unit
activity.save()
activities.append(activity)
unit.activities = activities
unit.activities.set(activities)
units.append(unit)
return units
......
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