]> git.0d.be Git - chloro.git/blobdiff - chloro/phyll/fields.py
trivial: apply new pre-commit hooks
[chloro.git] / chloro / phyll / fields.py
index 2ce4b91920430639a975c1b91b94edc77167ba19..7bd2ddbef308b08f3b4f11cc17e8daca42f6e751 100644 (file)
@@ -14,9 +14,8 @@
 # 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):
@@ -28,12 +27,12 @@ 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('&laquo; ', '«\u202f')