mirror of
https://github.com/django/django.git
synced 2025-06-07 04:29:12 +00:00
Corrected AsyncRequestFactory's docstring.
All AsyncRequestFactory methods are still synchronous callables.
This commit is contained in:
parent
9942a3e49b
commit
95b8449158
@ -623,8 +623,8 @@ class AsyncRequestFactory(RequestFactory):
|
|||||||
testing. Usage:
|
testing. Usage:
|
||||||
|
|
||||||
rf = AsyncRequestFactory()
|
rf = AsyncRequestFactory()
|
||||||
get_request = await rf.get('/hello/')
|
get_request = rf.get("/hello/")
|
||||||
post_request = await rf.post('/submit/', {'foo': 'bar'})
|
post_request = rf.post("/submit/", {"foo": "bar"})
|
||||||
|
|
||||||
Once you have a request object you can pass it to any view function,
|
Once you have a request object you can pass it to any view function,
|
||||||
including synchronous ones. The reason we have a separate class here is:
|
including synchronous ones. The reason we have a separate class here is:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user