django-summernote icon indicating copy to clipboard operation
django-summernote copied to clipboard

Latest django_summernote from pypi doesn't include bleach

Open millerthegorilla opened this issue 3 years ago • 1 comments

In the latest django_summernote from pypi, version 0.8.11.6, there is no bleach.

From django_summernote/fields.py in site packages..

 /usr/local/lib/python3.9/site-packages/django_summernote/fields.py            

from django.db import models
from django.forms import fields
from django_summernote.widgets import SummernoteWidget


# code based on https://github.com/shaunsephton/django-ckeditor

class SummernoteTextFormField(fields.CharField):
    def __init__(self, *args, **kwargs):
        kwargs.update({'widget': SummernoteWidget()})
        super(SummernoteTextFormField, self).__init__(*args, **kwargs)


class SummernoteTextField(models.TextField):
    def formfield(self, **kwargs):
        kwargs.update({'form_class': SummernoteTextFormField})
        return super(SummernoteTextField, self).formfield(**kwargs)

millerthegorilla avatar Jan 27 '21 14:01 millerthegorilla

I am guessing the codebase has been updated on github and pypi hasn't been updated.

millerthegorilla avatar Jan 27 '21 16:01 millerthegorilla