diff options
| author | Tim Graham <timograham@gmail.com> | 2014-12-19 19:11:52 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-12-19 19:12:54 -0500 |
| commit | 0e3626260df15d7516ece2c8e60898f21f3e5ebb (patch) | |
| tree | b2d0dddcfcf8ffebb96134b6fb04649f66fd133d | |
| parent | ab6df6419c4659ff4b3d4c218f2a2a1d89288c68 (diff) | |
[1.6.x] Added upgrade instructions for deprecated model _meta permission methods.
Backport of a3d96bee36040975ded8e3bf02e33e48d06f1f16 from master
| -rw-r--r-- | docs/releases/1.6.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/releases/1.6.txt b/docs/releases/1.6.txt index 68dde2a14f..36b5cc51c8 100644 --- a/docs/releases/1.6.txt +++ b/docs/releases/1.6.txt @@ -1091,7 +1091,9 @@ private API, it will go through a regular deprecation path. ``Model._meta.get_(add|change|delete)_permission`` methods were deprecated. Even if they were not part of the public API they'll also go through -a regular deprecation path. +a regular deprecation path. You can replace them with +``django.contrib.auth.get_permission_codename('action', Model._meta)`` where +``'action'`` is ``'add'``, ``'change'``, or ``'delete'``. ``get_query_set`` and similar methods renamed to ``get_queryset`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
