File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -125,19 +125,19 @@ Example
125
125
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
126
126
127
127
Additional instances of RequestFactory, which mimic the behavior of these
128
- two middleware :
128
+ two middlewares :
129
129
130
130
- `django.contrib.sessions.middleware.SessionMiddleware `_
131
131
- `django.contrib.auth.middleware.AuthenticationMiddleware `_
132
132
133
- This will add two attributes to the the ``request `` object,
133
+ This will add two attributes to the ``request `` object,
134
134
``request.user `` and ``request.session ``.
135
135
136
136
- ``request.session `` is an in-memory `SessionBase `_ object.
137
- - ``request.user `` depends on the fixture used:
137
+ - ``request.user `` depends on the fixture being used:
138
138
139
139
- ``rf_unauth ``: an `AnonymousUser `_
140
- - ``rf_user ``: a normal user with no additional priveleges
140
+ - ``rf_user ``: a normal user with no additional privileges
141
141
- ``rf_admin ``: an admin user
142
142
143
143
::
@@ -203,7 +203,7 @@ Using the `admin_client` fixture will cause the test to automatically be marked
203
203
``user_client `` - ``django.test.Client `` logged in as normal user
204
204
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
205
205
206
- Same as ``admin_client ``, but a for a regular user.
206
+ Same as ``admin_client ``, but for a regular user.
207
207
208
208
Example
209
209
"""""""
You can’t perform that action at this time.
0 commit comments