File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ Changelog
49
49
* Improved documentation related to nested plugins.
50
50
* Updated installation tutorial.
51
51
* Fixed a simple typo in the docstring for ``cms.utils.helpers.normalize_name ``.
52
+ * Updated 'How to create Plugins' Tutorial.
52
53
53
54
54
55
3.7.0 (2019-09-25)
Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ it becomes::
263
263
sections = models.ManyToManyField(Section)
264
264
265
265
def copy_relations(self, oldinstance):
266
- self.sections = oldinstance.sections.all()
266
+ self.sections.set( oldinstance.sections.all() )
267
267
268
268
If your plugins have relational fields of both kinds, you may of course need
269
269
to use *both * the copying techniques described above.
You can’t perform that action at this time.
0 commit comments