Commits

Anonymous committed 0cde165

magic-removal: verbose_name for OneToOneField is now calculated like for ForeignKey rather than set to 'ID'

Comments (0)

Files changed (1)

django/db/models/fields/related.py

 
 class OneToOneField(RelatedField, IntegerField):
     def __init__(self, to, to_field=None, **kwargs):
-        kwargs['verbose_name'] = kwargs.get('verbose_name', 'ID')
+        kwargs['verbose_name'] = kwargs.get('verbose_name', '')
         to_field = to_field or to._meta.pk.name
 
         if kwargs.has_key('edit_inline_type'):