File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff 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 ``.
3032Set 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.
You can’t perform that action at this time.
0 commit comments