Opened 7 years ago

Closed 7 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: UI/UX:


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 7 years ago by lukeplant

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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