summaryrefslogtreecommitdiff
path: root/docs/ref/models/options.txt
diff options
context:
space:
mode:
authorolivierdalang <olivier.dalang@gmail.com>2018-05-02 20:39:12 +1200
committerTim Graham <timograham@gmail.com>2018-05-16 06:44:55 -0400
commit825f0beda804e48e9197fcf3b0d909f9f548aa47 (patch)
treebe5036c256efa1cd06a72b3265ed97884afc39cb /docs/ref/models/options.txt
parent35b6a348dea6b019679fe35fd443be875bdb028e (diff)
Fixed #8936 -- Added a view permission and a read-only admin.
Co-authored-by: Petr Dlouhy <petr.dlouhy@email.cz> Co-authored-by: Olivier Dalang <olivier.dalang@gmail.com>
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``
---------