| 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``. |
|---|