X-Git-Url: https://git.0d.be/?p=chloro.git;a=blobdiff_plain;f=chloro%2Fmonkeypatch.py;h=c0c71425df778dd51be43adfb6bdd744d89aae92;hp=436b0cd35949c0de6765fe1608917281c389b0b4;hb=425f34e0cbf80f79f6cf6c7ab7f89ee50b4b2572;hpb=09aaa15305cc1d5c2708ff0a9d70c52adbaf06ac diff --git a/chloro/monkeypatch.py b/chloro/monkeypatch.py index 436b0cd..c0c7142 100644 --- a/chloro/monkeypatch.py +++ b/chloro/monkeypatch.py @@ -14,7 +14,7 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -from django.core.urlresolvers import reverse +from django.urls import reverse from django.forms.utils import flatatt from django.template.loader import render_to_string from django.utils.encoding import force_text @@ -27,7 +27,7 @@ import ckeditor.widgets from ckeditor.image import pillow_backend -def ckeditor_render(self, name, value, attrs=None): +def ckeditor_render(self, name, value, attrs=None, renderer=None): if value is None: value = '' final_attrs = {'name': name}