From 0e3626260df15d7516ece2c8e60898f21f3e5ebb Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Fri, 19 Dec 2014 19:11:52 -0500 Subject: [PATCH] [1.6.x] Added upgrade instructions for deprecated model _meta permission methods. Backport of a3d96bee36040975ded8e3bf02e33e48d06f1f16 from master --- docs/releases/1.6.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~