Skip to content

Commit

Permalink
Merge b208b10 into 877c5c2
Browse files Browse the repository at this point in the history
  • Loading branch information
FinalAngel committed May 26, 2020
2 parents 877c5c2 + b208b10 commit 39857a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Expand Up @@ -49,6 +49,7 @@ Changelog
* Improved documentation related to nested plugins.
* Updated installation tutorial.
* Fixed a simple typo in the docstring for ``cms.utils.helpers.normalize_name``.
* Updated 'How to create Plugins' Tutorial.


3.7.0 (2019-09-25)
Expand Down
2 changes: 1 addition & 1 deletion docs/how_to/custom_plugins.rst
Expand Up @@ -263,7 +263,7 @@ it becomes::
sections = models.ManyToManyField(Section)

def copy_relations(self, oldinstance):
self.sections = oldinstance.sections.all()
self.sections.set(oldinstance.sections.all())

If your plugins have relational fields of both kinds, you may of course need
to use *both* the copying techniques described above.
Expand Down

0 comments on commit 39857a3

Please sign in to comment.