Skip to content

Commit

Permalink
add docs for interchangable keys
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrDlouhy committed Aug 2, 2022
1 parent 0f405c6 commit 05e25ae
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/settings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,20 @@ COMMENT_TIMEOUT

The maximum comment form timeout in seconds. The default value is
``2 * 60 * 60`` (2 hours).


COMMENTS_ID_OVERRIDES
----------------------

.. setting:: COMMENTS_ID_OVERRIDES

A dictionary of ``{"app_label": "id_field"}`` pairs that override the
PK used for referencing comment objects.

If you want to disguise the plain IDs of your referenced model on the site, you can
use uuid field as an ID for the model. You don't have to change the model to use different PK.
For example::

COMMENTS_ID_OVERRIDES = {
"myapp.MyModel": "uuid",
}

0 comments on commit 05e25ae

Please sign in to comment.