#4114: ForeignKey and OneToOneField should take the verbose_name of target field
by default
-----------------------+----------------------------------------------------
Reporter:  anonymous   |       Owner:  adrian                               
  Status:  new         |   Component:  Database wrapper                     
 Version:  SVN         |    Keywords:  ForeignKey OneToOneField verbose_name
   Stage:  Unreviewed  |   Has_patch:  1                                    
-----------------------+----------------------------------------------------
 In order to get a user-friendly and localize-ready field name in the Admin
 site, {{{ForeignKey}}} and {{{OneToOneField}}} should take the
 {{{verbose_name}}} of target field by default. Otherwise you'll have to
 write something like this:
 
 {{{
 Foo = ForeignKey(Bar, verbose_name=Bar._meta.verbose_name)
 }}}
 
 That would violate the DRY principle.
 
 Here's a patch for Django svn revision 5056, which modifies
 {{{django/db/models/fields/related.py}}}.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/4114>
Django Code <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
-~----------~----~----~----~------~----~------~--~---

Reply via email to