Ticket #17131: ticket17131.diff

File ticket17131.diff, 1.1 KB (added by mateusgondim, 12 years ago)

I replaced the outdated text in auth.txt with a text talking about the possibility of permissions per specific object instance.

  • docs/topics/auth.txt

    diff --git a/docs/topics/auth.txt b/docs/topics/auth.txt
    index c3a2636..fd533e9 100644
    a b The Django admin site uses permissions as follows:  
    14931493* Access to delete an object is limited to users with the "delete"
    14941494  permission for that type of object.
    14951495
    1496 Permissions are set globally per type of object, not per specific object
    1497 instance. For example, it's possible to say "Mary may change news stories," but
    1498 it's not currently possible to say "Mary may change news stories, but only the
    1499 ones she created herself" or "Mary may only change news stories that have a
    1500 certain status, publication date or ID." The latter functionality is something
    1501 Django developers are currently discussing.
     1496Permissions can be set not only per type of object, but also per specific
     1497object instance. By using the has_add_permission, has_change_permission and
     1498has_delete_permission methods, provided by the ``ModelAdmin`` class, it is
     1499possible to customize permissions for different object instances of the same
     1500type.
    15021501
    15031502Default permissions
    15041503-------------------
Back to Top