Ticket #17219: 17219.diff

File 17219.diff, 2.4 KB (added by Simon Charette, 13 years ago)
  • django/db/models/fields/__init__.py

    diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py
    index 55b993a..3f59aa1 100644
    a b class NullBooleanField(Field):  
    10981098        return super(NullBooleanField, self).formfield(**defaults)
    10991099
    11001100class PositiveIntegerField(IntegerField):
    1101     description = _("Integer")
     1101    description = _("Positive integer")
    11021102
    11031103    def get_internal_type(self):
    11041104        return "PositiveIntegerField"
    class PositiveIntegerField(IntegerField):  
    11091109        return super(PositiveIntegerField, self).formfield(**defaults)
    11101110
    11111111class PositiveSmallIntegerField(IntegerField):
    1112     description = _("Integer")
     1112    description = _("Positive small integer")
    11131113    def get_internal_type(self):
    11141114        return "PositiveSmallIntegerField"
    11151115
    class PositiveSmallIntegerField(IntegerField):  
    11191119        return super(PositiveSmallIntegerField, self).formfield(**defaults)
    11201120
    11211121class SlugField(CharField):
    1122     description = _("String (up to %(max_length)s)")
     1122    description = _("Slug (up to %(max_length)s)")
    11231123    def __init__(self, *args, **kwargs):
    11241124        kwargs['max_length'] = kwargs.get('max_length', 50)
    11251125        # Set db_index=True unless it's been set manually.
    class SlugField(CharField):  
    11361136        return super(SlugField, self).formfield(**defaults)
    11371137
    11381138class SmallIntegerField(IntegerField):
    1139     description = _("Integer")
     1139    description = _("Small integer")
    11401140
    11411141    def get_internal_type(self):
    11421142        return "SmallIntegerField"
  • django/db/models/fields/files.py

    diff --git a/django/db/models/fields/files.py b/django/db/models/fields/files.py
    index d4b1743..6f1f183 100644
    a b class FileField(Field):  
    211211    # The descriptor to use for accessing the attribute off of the class.
    212212    descriptor_class = FileDescriptor
    213213
    214     description = _("File path")
     214    description = _("File")
    215215
    216216    def __init__(self, verbose_name=None, name=None, upload_to='', storage=None, **kwargs):
    217217        for arg in ('primary_key', 'unique'):
    class ImageFieldFile(ImageFile, FieldFile):  
    318318class ImageField(FileField):
    319319    attr_class = ImageFieldFile
    320320    descriptor_class = ImageFileDescriptor
    321     description = _("File path")
     321    description = _("Image")
    322322
    323323    def __init__(self, verbose_name=None, name=None, width_field=None,
    324324            height_field=None, **kwargs):
Back to Top