Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #6238 -- Bumped up the length of data displayed in databrowse s…

…lightly. Patch from Nick Efford.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6948 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 36a748787d6b1b8f2496b535a72f5731c9710852 1 parent 76f3856
Malcolm Tredinnick malcolmt authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 django/contrib/databrowse/datastructures.py
5 django/contrib/databrowse/datastructures.py
View
@@ -12,6 +12,7 @@
from django.db.models.query import QuerySet
EMPTY_VALUE = '(None)'
+DISPLAY_SIZE = 100
class EasyModel(object):
def __init__(self, site, model):
@@ -93,8 +94,8 @@ def __repr__(self):
def __unicode__(self):
val = smart_unicode(self.instance)
- if len(val) > 30:
- return val[:30] + u'...'
+ if len(val) > DISPLAY_SIZE:
+ return val[:DISPLAY_SIZE] + u'...'
return val
def __str__(self):
Please sign in to comment.
Something went wrong with that request. Please try again.