Opened 8 years ago

Closed 8 years ago

#6238 closed (fixed)

String size limit too low for model instances in databrowse

Reported by: nickefford Owned by: nickefford
Component: contrib.databrowse Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation:
Needs tests: Patch needs improvement:
Easy pickings: UI/UX:

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)

databrowse.diff (724 bytes) - added by nickefford 8 years ago.
Patch to raise the string size limit in the databrowse app

Download all attachments as: .zip

Change History (2)

Changed 8 years ago by nickefford

Patch to raise the string size limit in the databrowse app

comment:1 Changed 8 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

(In [6948]) Fixed #6238 -- Bumped up the length of data displayed in databrowse slightly. Patch from Nick Efford.

Note: See TracTickets for help on using tickets.
Back to Top