Opened 17 years ago
Closed 17 years ago
#5804 closed (wontfix)
URLField should be max_length 255 by default
Reported by: | Nathan Hoover | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Keywords: | URLField model | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
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.
Note:
See TracTickets
for help on using tickets.
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).