#859 closed defect (wontfix)
CharField shouldn't require a maxlength
Reported by: | aaronsw | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | |
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
Coming up with the maxlength for a CharField is a difficult and frustrating problem. By default, it should just make it as long as possible or as reasonable, so that users don't have to worry about such nonsense.
Change History (5)
comment:1 by , 19 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:2 by , 19 years ago
Resolution: | wontfix |
---|---|
Status: | closed → reopened |
TextFields appear as <textarea>
s and not <input type="text">
.
comment:3 by , 19 years ago
Resolution: | → wontfix |
---|---|
Status: | reopened → closed |
anonymous: CharField
s requires a maxlength
parameter. If you don't want to set a limit on text-based database fields, use TextField
. Guessing a maxlength
automatically is, frankly, quite silly.
comment:5 by , 19 years ago
Explicit is better than implicit; so when you ask for a field of a type which requires a length, Django should
not try to guess what you want.
If you'd rather not specify a maxlength, just use
TextField
.