Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed unused model option "admin"

  • Loading branch information...
commit 5df84b268de45fffd90930e6442eb511cba71f5f 1 parent 1123f45
Tim Graham timgraham authored
Showing with 2 additions and 4 deletions.
  1. +0 −1  django/db/models/options.py
  2. +2 −3 docs/ref/models/options.txt
1  django/db/models/options.py
View
@@ -41,7 +41,6 @@ def __init__(self, meta, app_label=None):
self.get_latest_by = None
self.order_with_respect_to = None
self.db_tablespace = settings.DEFAULT_TABLESPACE
- self.admin = None
self.meta = meta
self.pk = None
self.has_auto_field, self.auto_field = False, None
5 docs/ref/models/options.txt
View
@@ -227,9 +227,8 @@ 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 object
- that has ``admin`` set. This example specifies an extra permission,
- ``can_deliver_pizzas``::
+ Add, delete and change permissions are automatically created for each
+ model. This example specifies an extra permission, ``can_deliver_pizzas``::
permissions = (("can_deliver_pizzas", "Can deliver pizzas"),)
Please sign in to comment.
Something went wrong with that request. Please try again.