Code

Opened 6 years ago

Closed 6 years ago

#7807 closed (wontfix)

Length/max_length patch for oldforms.TextField

Reported by: masneyb@… Owned by: nobody
Component: Uncategorized Version: 0.96
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

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.

Attachments (1)

oldforms-length.patch (761 bytes) - added by masneyb@… 6 years ago.

Download all attachments as: .zip

Change History (2)

Changed 6 years ago by masneyb@…

comment:1 Changed 6 years ago by dc

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

Only security bugfixes in 0.96 and oldforms will be completely removed soon.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.