Opened 11 years ago

Closed 11 years ago

#10873 closed (invalid)


Reported by: onno Owned by: nobody
Component: Template system Version: 1.1-beta
Severity: Keywords: urlize
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Adverted in the django docs is that a string go's to <a href=""></a>

However this is not the case when you use teh model.URLField that requires http:// and ads a "/" to the end. Resulting in <a href=""></a>

This is ugly and should be fixed!

Change History (1)

comment:1 Changed 11 years ago by Luke Plant

Resolution: invalid
Status: newclosed

urlize works exactly as advertised, and URLField does too.

Strictly speaking, is not a URL, it is a domain, so it seems reasonable that URLField should either not accept it as a URL or convert it so that it is a URL. urlize is for marking up users' text in things like comments, whereas URLField is meant for storing URLs in the database, so it makes sense that it should be more fussy and only store actual URLs.

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