#5926: Default permissions
----------------------------------+-----------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: nobody
Status: new | Component: Uncategorized
Version: SVN | Keywords:
Stage: Unreviewed | Has_patch: 0
----------------------------------+-----------------------------------------
I bad know english. But.
I have model:
class Settings(models.Model):
user_per_page = models.IntegerField(_('User per page'), null=False)
class Meta():
permissions = (('change_settings', 'Can change settings'),)
in docs is written:
Default permissions
-------------------
Three basic permissions -- add, change and delete -- are automatically
created
for each Django model that has a ``class Admin`` set. Behind the scenes,
these
permissions are added to the ``auth_permission`` database table when you
run
``manage.py syncdb``.
Note that if your model doesn't have ``class Admin`` set when you run
``syncdb``, the permissions won't be created. If you initialize your
database
and add ``class Admin`` to models after the fact, you'll need to run
``manage.py syncdb`` again. It will create any missing permissions for
all of your installed apps.
My model not have ``class Admin``, but permissions for ``add,change and
delete`` was created. Plus my custom permissions - hiccupped - four
permissions.
--
Ticket URL: <http://code.djangoproject.com/ticket/5926>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---