Opened 13 years ago

Closed 13 years ago

#4652 closed (invalid)

URLField controls the text even if verify_exists and required are False

Reported by: Eren Türkay <turkay.eren@…> Owned by: Adrian Holovaty
Component: Forms Version: 0.96
Severity: Keywords: urlfield
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no



I have and URLField in user membership form, it's not optional and the initial value is http:// When I blank homepage input as is, django gives error "Enter a valid URL" even if I set required false. in line 287, super function is called regardless of controlling this option.

Attachments (1) (404 bytes) - added by Eren Türkay <turkay.eren@…> 13 years ago.

Download all attachments as: .zip

Change History (2)

Changed 13 years ago by Eren Türkay <turkay.eren@…>

Attachment: added


comment:1 Changed 13 years ago by Chris Beaven

Resolution: invalid
Status: newclosed

The clean_* methods are called after the field's own clean method so you're getting it too late. You'd have to subclass URLField to do what you want to do.

Note: See TracTickets for help on using tickets.
Back to Top