Django

Code

Ticket #6238 (closed: fixed)

Opened 1 year ago

Last modified 1 year ago

String size limit too low for model instances in databrowse

Reported by: nickefford Assigned to: nickefford
Milestone: Component: django.contrib.databrowse
Version: SVN Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation:
Needs tests: Patch needs improvement:

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

databrowse.diff (0.7 kB) - added by nickefford on 12/18/07 13:29:33.
Patch to raise the string size limit in the databrowse app

Change History

12/18/07 13:29:33 changed by nickefford

  • attachment databrowse.diff added.

Patch to raise the string size limit in the databrowse app

12/18/07 21:58:53 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #6238 (String size limit too low for model instances in databrowse)




Change Properties
Action