Skip to content

Commit

Permalink
Merge pull request #385 from sauerburger/fix-filter-users-doc-example
Browse files Browse the repository at this point in the history
Users filter in docs should return collection
  • Loading branch information
akatsoulas committed Mar 25, 2021
2 parents f5dc420 + 89c4683 commit 2a7a1b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ email address. Then we could do this:
try:
profile = Profile.objects.get(email=email)
return profile.user
return [profile.user]
except Profile.DoesNotExist:
return self.UserModel.objects.none()
Expand Down

0 comments on commit 2a7a1b2

Please sign in to comment.