Skip to content

Commit f73d150

Browse files
committed
update documentation
Signed-off-by: Benjamin Skov Kaas-Hansen <[email protected]>
1 parent a3a51ce commit f73d150

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/historical_model.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,15 @@ The example below uses a ``UUIDField`` instead of an ``AutoField``:
2727
2828
Since using a ``UUIDField`` for the ``history_id`` is a common use case, there is a
2929
``SIMPLE_HISTORY_HISTORY_ID_USE_UUID`` setting that will set all instances of ``history_id`` to UUIDs.
30+
By default, this will use UUIDv4, but you can choose to use UUIDv7 by setting
31+
``SIMPLE_HISTORY_HISTORY_ID_UUID_VERSION`` to ``7``.
3032
Set this with the following line in your ``settings.py`` file:
3133

3234

3335
.. code-block:: python
3436
3537
SIMPLE_HISTORY_HISTORY_ID_USE_UUID = True
36-
38+
SIMPLE_HISTORY_HISTORY_ID_UUID_VERSION = 7 # Optional
3739
3840
3941
This setting can still be overridden using the ``history_id_field`` parameter on a per model basis.

0 commit comments

Comments
 (0)