#25039: Automatic setup verbose_name for related fields
--------------------------------------+--------------------
     Reporter:  djbaldey              |      Owner:  nobody
         Type:  Cleanup/optimization  |     Status:  new
    Component:  Uncategorized         |    Version:  master
     Severity:  Normal                |   Keywords:
 Triage Stage:  Unreviewed            |  Has patch:  1
Easy pickings:  0                     |      UI/UX:  0
--------------------------------------+--------------------
 In a large multilingual projects often lack the simplest things. To edit
 verbose_name for related objects occurred in one place.

 Before:


 {{{
 class Foo(models.Model):
     ...
     class Meta:
         verbose_name = _('foo')


 class Bar(models.Model):
     foo = models.ForeignKey(Foo, verbose_name=_('foo'))
 }}}



 After:


 {{{
 class Foo(models.Model):
     ...
     class Meta:
         verbose_name = _('foo')


 class Bar(models.Model):
     foo = models.ForeignKey(Foo)
 }}}


 This patch only works when you specify a class and not a lazy reference to
 the object.
 It also reduces the memory consumption.

--
Ticket URL: <https://code.djangoproject.com/ticket/25039>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.8589b99499cd63274a8e893e77f72c0c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to