summaryrefslogtreecommitdiff
path: root/docs/ref/models/options.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref/models/options.txt')
-rw-r--r--docs/ref/models/options.txt16
1 files changed, 10 insertions, 6 deletions
diff --git a/docs/ref/models/options.txt b/docs/ref/models/options.txt
index fe51a1a362..51a87fc632 100644
--- a/docs/ref/models/options.txt
+++ b/docs/ref/models/options.txt
@@ -313,7 +313,7 @@ Django quotes column and table names behind the scenes.
.. attribute:: Options.permissions
Extra permissions to enter into the permissions table when creating this object.
- Add, delete and change permissions are automatically created for each
+ Add, change, delete, and view permissions are automatically created for each
model. This example specifies an extra permission, ``can_deliver_pizzas``::
permissions = (("can_deliver_pizzas", "Can deliver pizzas"),)
@@ -326,11 +326,15 @@ Django quotes column and table names behind the scenes.
.. attribute:: Options.default_permissions
- Defaults to ``('add', 'change', 'delete')``. You may customize this list,
- for example, by setting this to an empty list if your app doesn't require
- any of the default permissions. It must be specified on the model before
- the model is created by :djadmin:`migrate` in order to prevent any omitted
- permissions from being created.
+ Defaults to ``('add', 'change', 'delete', 'view')``. You may customize this
+ list, for example, by setting this to an empty list if your app doesn't
+ require any of the default permissions. It must be specified on the model
+ before the model is created by :djadmin:`migrate` in order to prevent any
+ omitted permissions from being created.
+
+ .. versionchanged:: 2.1
+
+ The ``view`` permission was added.
``proxy``
---------