Length/max_length patch for oldforms.TextField
|Reported by:||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Version 0.96 of Django's db.models.fields.CharField uses oldforms.TextField. The length argument cannot be specified and it is always set to 30 characters, even if the maximum number of characters is fewer. This issue was causing some layout problems for me when editing items inline. This patch will truncate the length field if it is greater than max_length. Let me know if there is a better way to fix this.