#5373: Field label for a ForeignKey not translated ------------------------------------------------------------------------+--- Reporter: Szilveszter Farkas <szilveszter.far...@gmail.com> | Owner: garcia_marc Status: new | Milestone: Component: Internationalization | Version: SVN Resolution: | Keywords: i18n foreignkey field label Stage: Accepted | Has_patch: 1 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | ------------------------------------------------------------------------+--- Comment (by datakid):
Ticket Summary: [8132] added a line to set_attributes_from_rel in /django/db/models/fields/related.py that has a condition that will never be true, due to self.verbose_name being set by set_attribute_from_name in /django/db/models/fields/__init__.py set_attribute_from_name makes self.verbose_name a string. set_attribute_from_rel makes self.verbose_name a django.utils.functional.__proxy__ object (ie, a translatable string) I have been told in IRC and private advice that I should change the admin form instead of the models code, but since the fix attached works _and_ the problem is as I've stated above (str obj v django.utils.functional.__proxy__ obj) I don't believe that's a very good way of dealing with this problem. -- Ticket URL: <http://code.djangoproject.com/ticket/5373#comment:12> 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 django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.