Ticket #6238: databrowse.diff

File databrowse.diff, 724 bytes (added by Nick Efford, 17 years ago)

Patch to raise the string size limit in the databrowse app

  • django/contrib/databrowse/datastructures.py

     
    1212from django.db.models.query import QuerySet
    1313
    1414EMPTY_VALUE = '(None)'
     15STRING_SIZE_LIMIT = 100
    1516
    1617class EasyModel(object):
    1718    def __init__(self, site, model):
     
    9394
    9495    def __unicode__(self):
    9596        val = smart_unicode(self.instance)
    96         if len(val) > 30:
    97             return val[:30] + u'...'
     97        if len(val) > STRING_SIZE_LIMIT:
     98            return val[:STRING_SIZE_LIMIT] + u'...'
    9899        return val
    99100
    100101    def __str__(self):
Back to Top