#27145: Discrepenacy between documentation and docstring for Storage.save method
--------------------------------------+------------------------------------
     Reporter:  pacahon               |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  Documentation         |                  Version:  1.9
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  1                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------
Changes (by timgraham):

 * has_patch:  0 => 1


Comment:

 Looks like 664855b74e1f417384dc7aef35a3df5f86db52d6 added the option to
 use a file-like object but the docs weren't updated. Does this look like
 enough?
 {{{ #!diff
 diff --git a/docs/ref/files/storage.txt b/docs/ref/files/storage.txt
 index dd06701..38f0135 100644
 --- a/docs/ref/files/storage.txt
 +++ b/docs/ref/files/storage.txt
 @@ -221,8 +221,7 @@ The ``Storage`` class
          :meth:`get_available_name`.

          The ``content`` argument must be an instance of
 -        :class:`django.core.files.File` or of a subclass of
 -        :class:`~django.core.files.File`.
 +        :class:`django.core.files.File` or a file-like object.

      .. method:: size(name)
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/27145#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.b3f8a0fc6106beb808b7ec046911c486%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to