diff options
| author | Simon Charette <charette.s@gmail.com> | 2013-06-22 21:48:09 -0400 |
|---|---|---|
| committer | Simon Charette <charette.s@gmail.com> | 2013-06-25 12:22:37 -0400 |
| commit | b91787910c9d5a036674d46a73d1b48ca33123a3 (patch) | |
| tree | 79cf95a2095ca00495fe1e4e10d19c6a252af69a /docs | |
| parent | f819bef3dc935851f71e4ad84592eee8664a48f3 (diff) | |
Fixed #20642 -- Deprecated `Option.get_(add|change|delete)_permission`.
Those methods were only used by `contrib.admin` internally and exclusively
related to `contrib.auth`. Since they were undocumented but used
in the wild the raised deprecation warning point to an also undocumented
alternative that lives in `contrib.auth`.
Also did some PEP8 and other cleanups in the affected modules.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/1.6.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/releases/1.6.txt b/docs/releases/1.6.txt index 5d1a37ac53..3d59ce771b 100644 --- a/docs/releases/1.6.txt +++ b/docs/releases/1.6.txt @@ -855,6 +855,13 @@ on a widget, you should now define this method on the form field itself. ``Model._meta.module_name`` was renamed to ``model_name``. Despite being a private API, it will go through a regular deprecation path. +``get_(add|change|delete)_permission`` model _meta methods +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +``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. + ``get_query_set`` and similar methods renamed to ``get_queryset`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
