mirror of https://github.com/django/django.git
Removed unused model option "admin"
This commit is contained in:
parent
1123f45511
commit
5df84b268d
|
@ -41,7 +41,6 @@ class Options(object):
|
||||||
self.get_latest_by = None
|
self.get_latest_by = None
|
||||||
self.order_with_respect_to = None
|
self.order_with_respect_to = None
|
||||||
self.db_tablespace = settings.DEFAULT_TABLESPACE
|
self.db_tablespace = settings.DEFAULT_TABLESPACE
|
||||||
self.admin = None
|
|
||||||
self.meta = meta
|
self.meta = meta
|
||||||
self.pk = None
|
self.pk = None
|
||||||
self.has_auto_field, self.auto_field = False, None
|
self.has_auto_field, self.auto_field = False, None
|
||||||
|
|
|
@ -227,9 +227,8 @@ Django quotes column and table names behind the scenes.
|
||||||
.. attribute:: Options.permissions
|
.. attribute:: Options.permissions
|
||||||
|
|
||||||
Extra permissions to enter into the permissions table when creating this object.
|
Extra permissions to enter into the permissions table when creating this object.
|
||||||
Add, delete and change permissions are automatically created for each object
|
Add, delete and change permissions are automatically created for each
|
||||||
that has ``admin`` set. This example specifies an extra permission,
|
model. This example specifies an extra permission, ``can_deliver_pizzas``::
|
||||||
``can_deliver_pizzas``::
|
|
||||||
|
|
||||||
permissions = (("can_deliver_pizzas", "Can deliver pizzas"),)
|
permissions = (("can_deliver_pizzas", "Can deliver pizzas"),)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue