Commit ebf42426 authored by Chris Routh's avatar Chris Routh 🐰

Pass tidied value to super call

parent 708bf319
Pipeline #2532 passed with stage
in 8 minutes
......@@ -37,7 +37,7 @@ class TidyCharField(CharField):
"""
tidied = tidy_input(value, **self.kwargs)
setattr(model_instance, self.attname, tidied)
return super(TidyCharField, self).clean(value, model_instance)
return super(TidyCharField, self).clean(tidied, model_instance)
def pre_save(self, model_instance, add):
"""
......@@ -81,7 +81,7 @@ class TidyTextField(TextField):
tidied = tidy_input(value, **self.kwargs)
setattr(model_instance, self.attname, tidied)
return super(TidyTextField, self).clean(value, model_instance)
return super(TidyTextField, self).clean(tidied, model_instance)
def pre_save(self, model_instance, add):
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment