String size limit too low for model instances in databrowse
|Reported by:||nickefford||Owned by:||nickefford|
|Has patch:||yes||Needs documentation:|
|Needs tests:||Patch needs improvement:|
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.