def summernote_settings(self): lang = get_proper_language() summernote_settings = config.get('summernote', {}).copy() summernote_settings.update({ 'lang': lang, 'url': { 'language': static('summernote/lang/summernote-' + lang + '.min.js'), 'upload_attachment': reverse('django_summernote-upload_attachment'), }, }) return summernote_settings
def summernote_settings(self): lang = get_proper_language() summernote_settings = config.get('summernote', {}).copy() summernote_settings.update({ 'lang': lang, 'url': { 'language': static('summernote/lang/summernote-' + lang + '.min.js'), 'upload_attachment': reverse('django_summernote-upload_attachment'), }, }) return summernote_settings