Skip to content

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

Description

@suriakub

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions