Code

Ticket #17219: 17219.diff

File 17219.diff, 2.4 KB (added by charettes, 2 years ago)
Line 
1diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py
2index 55b993a..3f59aa1 100644
3--- a/django/db/models/fields/__init__.py
4+++ b/django/db/models/fields/__init__.py
5@@ -1098,7 +1098,7 @@ class NullBooleanField(Field):
6         return super(NullBooleanField, self).formfield(**defaults)
7 
8 class PositiveIntegerField(IntegerField):
9-    description = _("Integer")
10+    description = _("Positive integer")
11 
12     def get_internal_type(self):
13         return "PositiveIntegerField"
14@@ -1109,7 +1109,7 @@ class PositiveIntegerField(IntegerField):
15         return super(PositiveIntegerField, self).formfield(**defaults)
16 
17 class PositiveSmallIntegerField(IntegerField):
18-    description = _("Integer")
19+    description = _("Positive small integer")
20     def get_internal_type(self):
21         return "PositiveSmallIntegerField"
22 
23@@ -1119,7 +1119,7 @@ class PositiveSmallIntegerField(IntegerField):
24         return super(PositiveSmallIntegerField, self).formfield(**defaults)
25 
26 class SlugField(CharField):
27-    description = _("String (up to %(max_length)s)")
28+    description = _("Slug (up to %(max_length)s)")
29     def __init__(self, *args, **kwargs):
30         kwargs['max_length'] = kwargs.get('max_length', 50)
31         # Set db_index=True unless it's been set manually.
32@@ -1136,7 +1136,7 @@ class SlugField(CharField):
33         return super(SlugField, self).formfield(**defaults)
34 
35 class SmallIntegerField(IntegerField):
36-    description = _("Integer")
37+    description = _("Small integer")
38 
39     def get_internal_type(self):
40         return "SmallIntegerField"
41diff --git a/django/db/models/fields/files.py b/django/db/models/fields/files.py
42index d4b1743..6f1f183 100644
43--- a/django/db/models/fields/files.py
44+++ b/django/db/models/fields/files.py
45@@ -211,7 +211,7 @@ class FileField(Field):
46     # The descriptor to use for accessing the attribute off of the class.
47     descriptor_class = FileDescriptor
48 
49-    description = _("File path")
50+    description = _("File")
51 
52     def __init__(self, verbose_name=None, name=None, upload_to='', storage=None, **kwargs):
53         for arg in ('primary_key', 'unique'):
54@@ -318,7 +318,7 @@ class ImageFieldFile(ImageFile, FieldFile):
55 class ImageField(FileField):
56     attr_class = ImageFieldFile
57     descriptor_class = ImageFileDescriptor
58-    description = _("File path")
59+    description = _("Image")
60 
61     def __init__(self, verbose_name=None, name=None, width_field=None,
62             height_field=None, **kwargs):