Permalink
Browse files

Merge pull request #168 from IlyaSemenov/fix_inline_widget_upload

Added missing CSRF_COOKIE_NAME to inplace widget (fixes #165)
  • Loading branch information...
2 parents e736cc9 + c26bd52 commit e2ed1ee246cfe5db8b4df764b674c96fce261661 @lqez lqez committed on GitHub Nov 21, 2016
Showing with 2 additions and 1 deletion.
  1. +2 −1 django_summernote/widgets.py
@@ -136,8 +136,9 @@ def render(self, name, value, attrs=None):
'id_src': attrs['id'],
'value': value if value else '',
'settings': json.dumps(self.template_contexts()),
- 'STATIC_URL': settings.STATIC_URL,
'disable_upload': summernote_config['disable_upload'],
+ 'STATIC_URL': settings.STATIC_URL,
+ 'CSRF_COOKIE_NAME': settings.CSRF_COOKIE_NAME,
}))
)
return mark_safe(html)

0 comments on commit e2ed1ee

Please sign in to comment.