tango_with_django_2_code icon indicating copy to clipboard operation
tango_with_django_2_code copied to clipboard

The overriden clean() method in PageForm class doesn't produce the desired effect

Open suriakub opened this issue 5 years ago • 0 comments

Hello, I understand that by overriding the clean() method in PageForm class the URL box on the ../add_page/ webpage should also accept URLs that don't begin with 'http://'. But it appears that the method is called only after the URL box is validated for incorrect format of URL, therefore it's never called until you type the URL correctly formatted in the first place. I tried cloning your chapter7 branch and it produced the same result as my project.

Is there a mistake or do I understand the purpose of the method in a wrong way?

image

suriakub avatar Sep 08 '20 16:09 suriakub