Skip to content

Commit

Permalink
Accounts Admin: Fix tinymce mce_attrs
Browse files Browse the repository at this point in the history
For me, editing django flatpages gave a HTTP 500.
It seems like tinymce.views.flatpages_link_list no longer exists.

The commit that changed the usage doc (https://github.com/jazzband/django-tinymce/blob/ff015bef65f32170ef116548861e540279cae227/docs/usage.rst#the-flatpages_link_list-view) is the following:
jazzband/django-tinymce@be6a959

So it seems like this new name is to fix a Django 1.10 compatibility issue. This fixed my HTTP 500.
  • Loading branch information
jwijenbergh committed Aug 30, 2024
1 parent 046d1ce commit 54d6ef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accounts/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def formfield_for_dbfield(self, db_field, **kwargs):
if db_field.name == 'content':
return forms.CharField(widget=TinyMCE(
attrs={'cols': 80, 'rows': 30},
mce_attrs={'external_link_list_url': reverse('tinymce.views.flatpages_link_list')},
mce_attrs={'external_link_list_url': reverse('tinymce-linklist')},
))
return super(TinyMCEFlatPageAdmin, self).formfield_for_dbfield(db_field, **kwargs)

Expand Down

0 comments on commit 54d6ef2

Please sign in to comment.