#13165: Display edit link beside add button for ForeignKey fields in admin
--------------------------------------+-------------------------------------
Reporter: DrMeers | Owner: DrMeers
Status: new | Milestone: 1.3
Component: User Experience | Version: SVN
Resolution: | Keywords: admin foreign key edit
link
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
--------------------------------------+-------------------------------------
Comment (by gklka):
That's it:
{{{
>>> get_changelink_html(obj, site, show_name = True)
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/Library/Python/2.6/site-packages/django/contrib/admin/util.py",
line 370, in get_changelink_html
text = _('edit %s' % obj)
File "/Library/Python/2.6/site-
packages/django/utils/translation/__init__.py", line 55, in ugettext
return real_ugettext(message)
File "/Library/Python/2.6/site-packages/django/utils/functional.py",
line 55, in _curried
return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))
File "/Library/Python/2.6/site-
packages/django/utils/translation/__init__.py", line 36, in delayed_loader
return getattr(trans, real_name)(*args, **kwargs)
File "/Library/Python/2.6/site-
packages/django/utils/translation/trans_real.py", line 276, in ugettext
return do_translate(message, 'ugettext')
File "/Library/Python/2.6/site-
packages/django/utils/translation/trans_real.py", line 262, in
do_translate
result = getattr(t, translation_function)(eol_message)
File
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/gettext.py",
line 404, in ugettext
return unicode(message)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 26:
ordinal not in range(128)
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/13165#comment:17>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.