Skip to content

Commit 3fece4b

Browse files
committed
Merge pull request django-cms#3357 from digi604/fix-3348
fixes django-cms#3348
2 parents 940b33c + 6688332 commit 3fece4b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cms/templates/cms/toolbar/plugin.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
'onClose': {% if refresh_page %}'REFRESH_PAGE'{% else %}{% if redirect_on_close %}'{{ redirect_on_close }}'{% else %}false{% endif %}{% endif %},
2525
'urls': {
2626
'add_plugin': '{% if add_url %}{{ add_url }}{% else %}{% url "admin:cms_page_add_plugin" %}}{% endif %}',
27-
'edit_plugin': '{% if edit_url %}{{ edit_url }}{% else %}{% url "admin:cms_page_edit_plugin" instance.pk %}{% endif %}',
27+
'edit_plugin': '{% if edit_url %}{{ edit_url }}{% elif instance %}{% url "admin:cms_page_edit_plugin" instance.pk %}{% endif %}',
2828
'move_plugin': '{% if move_url %}{{ move_url }}{% else %}{% url "admin:cms_page_move_plugin" %}{% endif %}',
29-
'delete_plugin': '{% if delete_url %}{{ delete_url }}{% else %}{% url "admin:cms_page_delete_plugin" instance.pk %}{% endif %}',
29+
'delete_plugin': '{% if delete_url %}{{ delete_url }}{% elif instance %}{% url "admin:cms_page_delete_plugin" instance.pk %}{% endif %}',
3030
'copy_plugin': '{% url "admin:cms_page_copy_plugins" %}'
3131
} {% endlanguage %}
3232
});

cms/templatetags/cms_tags.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ def get_processors(self, context, plugin):
359359
def get_context(self, context, plugin):
360360
if not plugin:
361361
return {'content': ''}
362-
362+
363363
processors=self.get_processors(context, plugin)
364364

365365
return {'content': plugin.render_plugin(context, processors=processors)}

0 commit comments

Comments
 (0)