From a3d96bee36040975ded8e3bf02e33e48d06f1f16 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Fri, 19 Dec 2014 19:11:52 -0500 Subject: [PATCH] Added upgrade instructions for deprecated model _meta permission methods. --- 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 0881f7b5da..bdf4e2f918 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`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~