1
0
mirror of https://github.com/django/django.git synced 2025-06-05 03:29:12 +00:00

[1.7.x] Added upgrade instructions for deprecated model _meta permission methods.

Backport of a3d96bee36040975ded8e3bf02e33e48d06f1f16 from master
This commit is contained in:
Tim Graham 2014-12-19 19:11:52 -05:00
parent ea18652238
commit c24624025b

View File

@ -1091,7 +1091,9 @@ private API, it will go through a regular deprecation path.
``Model._meta.get_(add|change|delete)_permission`` methods were deprecated. ``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 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`` ``get_query_set`` and similar methods renamed to ``get_queryset``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~