#33757: django.test.Client.post documentation is confusing
--------------------------------+--------------------------------------
Reporter: bastian-wattro | Owner: nobody
Type: Bug | Status: closed
Component: Documentation | Version: 4.0
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+--------------------------------------
Changes (by Mariusz Felisiak):
* status: new => closed
* resolution: => invalid
Comment:
I don't see anything confusing in this docs.
> This made me assume that the file given via the file pointer will be
accessible via the keyword `fred`.
Docs explicitly states that the name `attachment` here is not relevant.
`fred` is not a keyword but a value for the `name` and it's used that way
in other examples.
> What I don't understand is why the keyword 'name' is there, and why
doesn't it simply say something like:
IMO it's valuable to show that other fields are handled properly and you
don't need to send files separately.
--
Ticket URL: <https://code.djangoproject.com/ticket/33757#comment:4>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018123cc243e-5bdfaa63-adbf-4175-808b-97b443b93c0d-000000%40eu-central-1.amazonses.com.