8000 Corrected plugin documentations based on Issue #6752 (#6798) (#6858) · django-cms/django-cms@6f0a40d · GitHub
[go: up one dir, main page]

Skip to content

Commit 6f0a40d

Browse files
FinalAngelMLK97
andauthored
Corrected plugin documentations based on Issue #6752 (#6798) (#6858)
Co-authored-by: Maximilian Konrad <maximilianlukaskonrad@hotmail.de>
1 parent 877c5c2 commit 6f0a40d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Changelog
4949
* Improved documentation related to nested plugins.
5050
* Updated installation tutorial.
5151
* Fixed a simple typo in the docstring for ``cms.utils.helpers.normalize_name``.
52+
* Updated 'How to create Plugins' Tutorial.
5253

5354

5455
3.7.0 (2019-09-25)

docs/how_to/custom_plugins.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ it becomes::
263263
sections = models.ManyToManyField(Section)
264264

265265
def copy_relations(self, oldinstance):
266-
self.sections = oldinstance.sections.all()
266+
self.sections.set(oldinstance.sections.all())
267267

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

0 commit comments

Comments
 (0)
0