tango_with_django_2_code
tango_with_django_2_code copied to clipboard
The overriden clean() method in PageForm class doesn't produce the desired effect
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?
