Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.6.x] Removed unused model option "admin"

Backport of 5df84b2 from master
  • Loading branch information...
commit b3e54f4a01dd410a87bc3d0669cb7b36aa74e7a8 1 parent d32471f
Tim Graham authored August 01, 2013
1  django/db/models/options.py
@@ -41,7 +41,6 @@ def __init__(self, meta, app_label=None):
41 41
         self.get_latest_by = None
42 42
         self.order_with_respect_to = None
43 43
         self.db_tablespace = settings.DEFAULT_TABLESPACE
44  
-        self.admin = None
45 44
         self.meta = meta
46 45
         self.pk = None
47 46
         self.has_auto_field, self.auto_field = False, None
5  docs/ref/models/options.txt
@@ -222,9 +222,8 @@ Django quotes column and table names behind the scenes.
222 222
 .. attribute:: Options.permissions
223 223
 
224 224
     Extra permissions to enter into the permissions table when creating this object.
225  
-    Add, delete and change permissions are automatically created for each object
226  
-    that has ``admin`` set. This example specifies an extra permission,
227  
-    ``can_deliver_pizzas``::
  225
+    Add, delete and change permissions are automatically created for each
  226
+    model. This example specifies an extra permission, ``can_deliver_pizzas``::
228 227
 
229 228
         permissions = (("can_deliver_pizzas", "Can deliver pizzas"),)
230 229
 

0 notes on commit b3e54f4

Please sign in to comment.
Something went wrong with that request. Please try again.