#33757: django.test.Client.post documentation is wrong --------------------------------+-------------------------------------- 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 --------------------------------+--------------------------------------
Comment (by Tim Graham): The example in the documentation initializes a client `c = Client()` while the snippet here uses `self.client`. It might that the latter version has some state attached to it (like a login) which makes the difference, but it's impossible to debug without some minimal example code. Please include that in future reports (and first confirm a bug in Django using support channels). -- Ticket URL: <https://code.djangoproject.com/ticket/33757#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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/010701812043e62e-2bfaf196-dda3-4bfa-ae2b-9921b3866335-000000%40eu-central-1.amazonses.com.