We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 877c5c2 commit 6f0a40dCopy full SHA for 6f0a40d
CHANGELOG.rst
@@ -49,6 +49,7 @@ Changelog
49
* Improved documentation related to nested plugins.
50
* Updated installation tutorial.
51
* Fixed a simple typo in the docstring for ``cms.utils.helpers.normalize_name``.
52
+* Updated 'How to create Plugins' Tutorial.
53
54
55
3.7.0 (2019-09-25)
docs/how_to/custom_plugins.rst
@@ -263,7 +263,7 @@ it becomes::
263
sections = models.ManyToManyField(Section)
264
265
def copy_relations(self, oldinstance):
266
- self.sections = oldinstance.sections.all()
+ self.sections.set(oldinstance.sections.all())
267
268
If your plugins have relational fields of both kinds, you may of course need
269
to use *both* the copying techniques described above.
0 commit comments