Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #6927: Corrected documentation describing when and why the auth…

… application creates default permissions

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7388 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 38d30e96914c28d116a5a93a1d6a90e3a6a00135 1 parent 502f0c1
James Bennett authored March 30, 2008

Showing 1 changed file with 11 additions and 10 deletions. Show diff stats Hide diff stats

  1. 21  docs/authentication.txt
21  docs/authentication.txt
@@ -819,16 +819,17 @@ Django developers are currently discussing.
819 819
 Default permissions
820 820
 -------------------
821 821
 
822  
-Three basic permissions -- add, change and delete -- are automatically created
823  
-for each Django model that has a ``class Admin`` set. Behind the scenes, these
824  
-permissions are added to the ``auth_permission`` database table when you run
825  
-``manage.py syncdb``.
826  
-
827  
-Note that if your model doesn't have ``class Admin`` set when you run
828  
-``syncdb``, the permissions won't be created. If you initialize your database
829  
-and add ``class Admin`` to models after the fact, you'll need to run
830  
-``manage.py syncdb`` again. It will create any missing permissions for
831  
-all of your installed apps.
  822
+When ``django.contrib.auth`` is listed in your ``INSTALLED_APPS``
  823
+setting, it will ensure that three default permissions -- add, change
  824
+and delete -- are created for each Django model defined in one of your
  825
+installed applications.
  826
+
  827
+These permissions will be created when you run ``manage.py syncdb``;
  828
+the first time you run ``syncdb`` after adding ``django.contrib.auth``
  829
+to ``INSTALLED_APPS``, the default permissions will be created for all
  830
+previously-installed models, as well as for any new models being
  831
+installed at that time. Afterward, it will create default permissions
  832
+for new models each time you run ``manage.py syncdb``.
832 833
 
833 834
 Custom permissions
834 835
 ------------------

0 notes on commit 38d30e9

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