Commit 37b1ce5d by Xavier Ordoquy

Merge pull request #4096 from tedmiston/master

Fix typo in permissions docs
parents 399e1c1d c355cdc5
...@@ -144,7 +144,7 @@ To use custom model permissions, override `DjangoModelPermissions` and set the ` ...@@ -144,7 +144,7 @@ To use custom model permissions, override `DjangoModelPermissions` and set the `
#### Using with views that do not include a `queryset` attribute. #### Using with views that do not include a `queryset` attribute.
If you're using this permission with a view that uses an overridden `get_queryset()` method there may not be a `queryset` attribute on the view. In this case we suggest also marking the view with a sential queryset, so that this class can determine the required permissions. For example: If you're using this permission with a view that uses an overridden `get_queryset()` method there may not be a `queryset` attribute on the view. In this case we suggest also marking the view with a sentinel queryset, so that this class can determine the required permissions. For example:
queryset = User.objects.none() # Required for DjangoModelPermissions queryset = User.objects.none() # Required for DjangoModelPermissions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment