diff options
| author | Arthur Rio <arthurio@users.noreply.github.com> | 2019-01-16 16:07:28 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2019-01-16 10:07:28 -0500 |
| commit | 181fb60159e54d442d3610f4afba6f066a6dac05 (patch) | |
| tree | 087646be10e537b2a9808e5351d30bd489e76273 /docs/releases | |
| parent | dbcf2ffa77af24642c035c58199e6058d91d8e35 (diff) | |
Fixed #11154, #22270 -- Made proxy model permissions use correct content type.
Co-Authored-By: Simon Charette <charette.s@gmail.com>
Co-Authored-By: Antoine Catton <acatton@fusionbox.com>
Diffstat (limited to 'docs/releases')
| -rw-r--r-- | docs/releases/2.2.txt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/releases/2.2.txt b/docs/releases/2.2.txt index d3c8e9abcc..069e098664 100644 --- a/docs/releases/2.2.txt +++ b/docs/releases/2.2.txt @@ -439,6 +439,28 @@ Use this instead:: alias = property(operator.attrgetter('base')) +Permissions for proxy models +---------------------------- + +:ref:`Permissions for proxy models <proxy-models-permissions-topic>` are now +created using the content type of the proxy model rather than the content type +of the concrete model. A migration will update existing permissions when you +run :djadmin:`migrate`. + +In the admin, the change is transparent for proxy models having the same +``app_label`` as their concrete model. However, in older versions, users with +permissions for a proxy model with a *different* ``app_label`` than its +concrete model couldn't access the model in the admin. That's now fixed, but +you might want to audit the permissions assignments for such proxy models +(``[add|view|change|delete]_myproxy``) prior to upgrading to ensure the new +access is appropriate. + +Finally, proxy model permission strings must be updated to use their own +``app_label``. For example, for ``app.MyProxyModel`` inheriting from +``other_app.ConcreteModel``, update +``user.has_perm('other_app.add_myproxymodel')`` to +``user.has_perm('app.add_myproxymodel')``. + Miscellaneous ------------- |
