  from django.db import models
  
  class CustomField(models.Field):
      """A custom field type"""
      
  class ManyLineDocstringField(models.Field):
      """Many-line custom field
      
      This docstring has many lines.  Lorum ipsem etc. etc.  Four score 
      and seven years ago, and so on and so forth."""
  
  class DocstringLackingField(models.Field):
      pass
 
</s> remove class DocstringLackingField(models.Field):
 </s> add class DescriptionLackingField(models.Field): </s> remove 
 </s> add from django.contrib.admindocs import views </s> remove             views.get_readable_field_data_type(fields.DocstringLackingField()),
            u'Field of type: DocstringLackingField'
        )
    
    def test_multiline_custom_field_truncation(self):
        self.assertEqual(
            views.get_readable_field_data_type(fields.ManyLineDocstringField()),
            u'Many-line custom field'
 </s> add             views.get_readable_field_data_type(fields.DescriptionLackingField()),
            u'Field of type: DescriptionLackingField' </s> remove from django.contrib.admindocs import views
 </s> add 
    description = "A custom field type"
  from django.db import models
  
  class CustomField(models.Field):
    description = "A custom field type"
    description = "A custom field type"
    description = "A custom field type"
    description = "A custom field type"
    description = "A custom field type"
    description = "A custom field type"
    description = "A custom field type"
  
  class DocstringLackingField(models.Field):
      pass
keep keep keep replace replace replace replace replace replace replace keep keep keep
 Fixed #12385: Made built-in field type descriptions in admindocs translatable again.  Many thanks to Ramiro for the problem report and patch.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@11878 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/contrib/admindocs/tests/fields.py