First at all, my apologies if this message is off-topic. I'm not sure if this is a bug and I can't find any related ticket in code.djangoproject.com
The problem is the following: I've defined in my model some fields with the attribute verbose_name marked for translation: class Item(): name = models.CharField(max_length=75, verbose_name=_('name')) When I access to validation errors, the field's name is not translated. I've found that editing the method _update_errors() in django/forms/models.py the field names are properly translated, here is the diff: 254c254 < self._errors.setdefault(k, self.error_class()).extend(v) --- > self._errors.setdefault(_(k), self.error_class()).extend(v) My question: is this a bug? Shall I report it? Thanks in advance and excuse my newbie questions. -- David. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/xMc7dDlU4iMJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.