Skip to content

Commit f65abf1

Browse files
jakobdoblueyed
authored andcommitted
docs: .create => .create_user (#623)
Otherwise the test does not work.
1 parent 8eb1fd0 commit f65abf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/helpers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ To use `client` as an authenticated standard user, call its `login()` method bef
146146
def test_with_authenticated_client(client, django_user_model):
147147
username = "user1"
148148
password = "bar"
149-
django_user_model.objects.create(username=username, password=password)
149+
django_user_model.objects.create_user(username=username, password=password)
150150
client.login(username=username, password=password)
151151
response = client.get('/private')
152152
assert response.content == 'Protected Area'

0 commit comments

Comments
 (0)