Opened 7 years ago

Closed 7 years ago

#5804 closed (wontfix)

URLField should be max_length 255 by default

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

Description

Using 200 saves no space (at least on DB's I am familliar with (MySQL, MSSQL, Oracle) and increasing the limit to 255 would accomodate more valid URLs.

If the spectrum of DB's supported by Django has a higher limit for ordinary (N)VARCHAR fields higher would be better.

Change History (1)

comment:1 Changed 7 years ago by mtredinnick

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

In trunk, you can specify max_length to change the length. For that reason, it's not worth changing the default, since that would be backwards incompatible (everybody would have to alter their existing database columns or risk data truncation).

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