Opened 18 years ago
Closed 18 years ago
#4652 closed (invalid)
URLField controls the text even if verify_exists and required are False
Description ¶
Hi,
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 forms.py line 287, super function is called regardless of controlling this option.
Change History (2)
by , 18 years ago
comment:1 by , 18 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
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.
test-case