Opened 7 years ago

Last modified 7 years ago

#25166 closed Cleanup/optimization

Incorrect statement in custom model permission documentation — at Version 1

Reported by: Baptiste Mispelon Owned by: nobody
Component: Documentation Version: 1.8
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description (last modified by Tim Graham)

The custom permission documentation at https://docs.djangoproject.com/en/dev/topics/auth/default/#default-permissions states that after you add a custom permission to a model's Meta:

it will create default permissions for new models each time you run manage.py migrate.

This is incorrect. What actually happens is that Django will detect the changes to the model's Meta and generate the appropriate migration for it when running makemigrations.

Change History (1)

comment:1 Changed 7 years ago by Tim Graham

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top