              return 'Integer'
      return ''
  
  def get_readable_field_data_type(field):
      """Returns the first line of a doc string for a given field type, if it 
      exists.  Fields' docstrings can contain format strings, which will be 
      interpolated against the values of Field.__dict__ before being output.  
      If no docstring is given, a sensible value will be auto-generated from 
      the field's class name."""
  
      if field.__doc__:
          doc = field.__doc__.split('\n')[0]
          return _(doc) % field.__dict__
      else:
          return _(u'Field of type: %(field_type)s') % {
              'field_type': field.__class__.__name__
          } 
  
  def extract_views_from_urlpatterns(urlpatterns, base=''):
      """
      Return a list of views from a list of urlpatterns.
  
 
</s> remove     """Integer"""
    
 </s> add     description = ugettext_lazy("Integer") </s> remove     """Date (without time)"""
    
 </s> add     description = ugettext_lazy("Date (without time)") </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     """Base class for all field types"""
    
 </s> add 
    """Returns the description for a given field type, if it exists,
    Fields' descriptions can contain format strings, which will be interpolated
    against the values of field.__dict__ before being output."""

    return field.description % field.__dict__
              return 'Integer'
      return ''
  
  def get_readable_field_data_type(field):
    """Returns the description for a given field type, if it exists,
    Fields' descriptions can contain format strings, which will be interpolated
    against the values of field.__dict__ before being output."""

    return field.description % field.__dict__
    """Returns the description for a given field type, if it exists,
    Fields' descriptions can contain format strings, which will be interpolated
    against the values of field.__dict__ before being output."""

    return field.description % field.__dict__
    """Returns the description for a given field type, if it exists,
    Fields' descriptions can contain format strings, which will be interpolated
    against the values of field.__dict__ before being output."""

    return field.description % field.__dict__
    """Returns the description for a given field type, if it exists,
    Fields' descriptions can contain format strings, which will be interpolated
    against the values of field.__dict__ before being output."""

    return field.description % field.__dict__
    """Returns the description for a given field type, if it exists,
    Fields' descriptions can contain format strings, which will be interpolated
    against the values of field.__dict__ before being output."""

    return field.description % field.__dict__
    """Returns the description for a given field type, if it exists,
    Fields' descriptions can contain format strings, which will be interpolated
    against the values of field.__dict__ before being output."""

    return field.description % field.__dict__
    """Returns the description for a given field type, if it exists,
    Fields' descriptions can contain format strings, which will be interpolated
    against the values of field.__dict__ before being output."""

    return field.description % field.__dict__
    """Returns the description for a given field type, if it exists,
    Fields' descriptions can contain format strings, which will be interpolated
    against the values of field.__dict__ before being output."""

    return field.description % field.__dict__
    """Returns the description for a given field type, if it exists,
    Fields' descriptions can contain format strings, which will be interpolated
    against the values of field.__dict__ before being output."""

    return field.description % field.__dict__
    """Returns the description for a given field type, if it exists,
    Fields' descriptions can contain format strings, which will be interpolated
    against the values of field.__dict__ before being output."""

    return field.description % field.__dict__
    """Returns the description for a given field type, if it exists,
    Fields' descriptions can contain format strings, which will be interpolated
    against the values of field.__dict__ before being output."""

    return field.description % field.__dict__
    """Returns the description for a given field type, if it exists,
    Fields' descriptions can contain format strings, which will be interpolated
    against the values of field.__dict__ before being output."""

    return field.description % field.__dict__
    """Returns the description for a given field type, if it exists,
    Fields' descriptions can contain format strings, which will be interpolated
    against the values of field.__dict__ before being output."""

    return field.description % field.__dict__
  
  def extract_views_from_urlpatterns(urlpatterns, base=''):
      """
      Return a list of views from a list of urlpatterns.
  
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep 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/views.py