summaryrefslogtreecommitdiff
path: root/django/contrib/admin/widgets.py
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2018-08-21 15:28:51 +0200
committerClaude Paroz <claude@2xlibre.net>2018-08-21 17:46:45 +0200
commit201017df308266c7d5ed20181e6d0ffa5832e3e9 (patch)
treeb0ef49951614962cdd7409158ffd06b7f3b9bb55 /django/contrib/admin/widgets.py
parent939dcff24f8e97d114595b102fb12348da482135 (diff)
Fixed #29654 -- Made text truncation an ellipsis character instead of three dots.
Thanks Sudhanshu Mishra for the initial patch and Tim Graham for the review.
Diffstat (limited to 'django/contrib/admin/widgets.py')
-rw-r--r--django/contrib/admin/widgets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/admin/widgets.py b/django/contrib/admin/widgets.py
index 32a1900cb1..c5cde4b14d 100644
--- a/django/contrib/admin/widgets.py
+++ b/django/contrib/admin/widgets.py
@@ -193,7 +193,7 @@ class ForeignKeyRawIdWidget(forms.TextInput):
except NoReverseMatch:
url = '' # Admin not registered for target model.
- return Truncator(obj).words(14, truncate='...'), url
+ return Truncator(obj).words(14), url
class ManyToManyRawIdWidget(ForeignKeyRawIdWidget):