﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
5926	Default permissions created without Admin class	sairus.nvkz@…	nobody	"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."		closed	Metasystem	dev		wontfix			Design decision needed	0	0	0	0	0	0
