mirror of
https://github.com/django/django.git
synced 2025-07-19 19:25:26 +00:00
Fixed #17219 -- Updated model field descriptions to be more precise. Thanks, charettes.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17476 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
46f1369d92
commit
2aae057727
2 changed files with 10 additions and 6 deletions
|
@ -211,7 +211,7 @@ class FileField(Field):
|
|||
# The descriptor to use for accessing the attribute off of the class.
|
||||
descriptor_class = FileDescriptor
|
||||
|
||||
description = _("File path")
|
||||
description = _("File")
|
||||
|
||||
def __init__(self, verbose_name=None, name=None, upload_to='', storage=None, **kwargs):
|
||||
for arg in ('primary_key', 'unique'):
|
||||
|
@ -318,7 +318,7 @@ class ImageFieldFile(ImageFile, FieldFile):
|
|||
class ImageField(FileField):
|
||||
attr_class = ImageFieldFile
|
||||
descriptor_class = ImageFileDescriptor
|
||||
description = _("File path")
|
||||
description = _("Image")
|
||||
|
||||
def __init__(self, verbose_name=None, name=None, width_field=None,
|
||||
height_field=None, **kwargs):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue