Opened 18 years ago
Closed 18 years ago
#6238 closed (fixed)
String size limit too low for model instances in databrowse
| Reported by: | Nick Efford | Owned by: | Nick Efford |
|---|---|---|---|
| Component: | contrib.databrowse | Version: | dev |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
The databrowse app imposes a hard-coded size limit of 30 characters on the string representations of model instances. This can cause problems if you have a model with __unicode__ method that creates lengthy strings.
The attached patch raises the limit to 100 characters. It also makes this value a module-level constant called STRING_SIZE_LIMIT, to improve code clarity.
Attachments (1)
Change History (2)
by , 18 years ago
| Attachment: | databrowse.diff added |
|---|
comment:1 by , 18 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Patch to raise the string size limit in the databrowse app