Opened 5 years ago

Closed 5 years ago

#30937 closed Bug (needsinfo)

URLField validator (URLValidator) does not respect null/blank

Reported by: Doug Fultz Owned by: nobody
Component: Database layer (models, ORM) Version: 2.2
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

URLField (as with all fields) takes null and blank arguments. Setting these arguments to True is not respected by URLField and URLValidator when running full_clean().

Change History (1)

comment:1 by Carlton Gibson, 5 years ago

Resolution: needsinfo
Status: newclosed

Hi Doug,

Can I ask you for a full example of code you think you should working but isn't, since I'm looking at a models.URLField(blank=True) right now that is working exactly as expected.
(So I'm not sure what you mean, exactly...)

Thanks.

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