From d7fb5a1fac194bfcf2dd3ab3b11f38d10c412f9b Mon Sep 17 00:00:00 2001 From: Ben Konrath Date: Tue, 20 Sep 2016 21:40:45 +0200 Subject: [PATCH] Improve django-guardian integration docs. --- docs/third-party.rst | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/third-party.rst b/docs/third-party.rst index 33c94a6..ec6f854 100644 --- a/docs/third-party.rst +++ b/docs/third-party.rst @@ -100,9 +100,15 @@ the view of the actual child model is used, similar to the way the regular chang django-guardian support ----------------------- -You can enable the content type of the base model to be used for the object levels permissions by setting the -django-guardian_ option `GUARDIAN_GET_CONTENT_TYPE` to `polymorphic.contrib.get_polymorphic_base_content_type`. Read -more about this option in the `django-guardian documentation `_. +You can enable django-guardian_ to use the base model for object level permissions by adding this option to your +settings: + +.. code-block:: python + + GUARDIAN_GET_CONTENT_TYPE = 'polymorphic.contrib.guardian.get_polymorphic_base_content_type' + +This option requires django-guardian_ >= 1.4.6. Details about how this option works are available in the +`django-guardian documentation `_. .. _django-reversion: https://github.com/etianen/django-reversion