Django

Code

Changeset 6948

Show
Ignore:
Timestamp:
12/18/07 21:58:53 (1 year ago)
Author:
mtredinnick
Message:

Fixed #6238 -- Bumped up the length of data displayed in databrowse slightly. Patch from Nick Efford.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/databrowse/datastructures.py

    r6671 r6948  
    1313 
    1414EMPTY_VALUE = '(None)' 
     15DISPLAY_SIZE = 100 
    1516 
    1617class EasyModel(object): 
     
    9495    def __unicode__(self): 
    9596        val = smart_unicode(self.instance) 
    96         if len(val) > 30
    97             return val[:30] + u'...' 
     97        if len(val) > DISPLAY_SIZE
     98            return val[:DISPLAY_SIZE] + u'...' 
    9899        return val 
    99100