# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-from django.conf import settings
-
import ckeditor.fields
+from django.conf import settings
class RichTextField(ckeditor.fields.RichTextField):
'external_plugin_resources': self.external_plugin_resources,
}
defaults.update(kwargs)
- return super(RichTextField, self).formfield(**defaults)
+ return super().formfield(**defaults)
class RichTextFormField(ckeditor.fields.RichTextFormField):
def clean(self, value):
- value = super(RichTextFormField, self).clean(value)
+ value = super().clean(value)
if settings.LANGUAGE_CODE.startswith('fr-'):
# apply some basic typographic rules
value = value.replace('« ', '«\u202f')