Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 authored December 19, 2007
5  django/contrib/databrowse/datastructures.py
@@ -12,6 +12,7 @@
12 12
 from django.db.models.query import QuerySet
13 13
 
14 14
 EMPTY_VALUE = '(None)'
  15
+DISPLAY_SIZE = 100
15 16
 
16 17
 class EasyModel(object):
17 18
     def __init__(self, site, model):
@@ -93,8 +94,8 @@ def __repr__(self):
93 94
 
94 95
     def __unicode__(self):
95 96
         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'...'
98 99
         return val
99 100
 
100 101
     def __str__(self):

0 notes on commit 36a7487

Please sign in to comment.
Something went wrong with that request. Please try again.