#25166: Incorrect statement in custom model permission documentation
-------------------------------+--------------------------------------
     Reporter:  bmispelon      |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  Documentation  |                  Version:  1.8
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  1              |                    UI/UX:  0
-------------------------------+--------------------------------------
Description changed by timgraham:

Old description:

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

New description:

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

--

--
Ticket URL: <https://code.djangoproject.com/ticket/25166#comment:1>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.423909755e121240b3c8ae4ed7f249af%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to