Skip to content

Commit 89c4683

Browse files
committed
Users filter in docs should return collection
The method filter_users_by_claim() should return an object that supports len(). The previous example in the documentation returned the user object directly. Wrapping the user in a list fixes the issue.
1 parent 2bd65e2 commit 89c4683

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ email address. Then we could do this:
255255
256256
try:
257257
profile = Profile.objects.get(email=email)
258-
return profile.user
258+
return [profile.user]
259259
260260
except Profile.DoesNotExist:
261261
return self.UserModel.objects.none()

0 commit comments

Comments
 (0)