1
Fork 0

Can't use UUIDField like this yet

See https://code.djangoproject.com/ticket/32577
This commit is contained in:
Jake Howard 2021-04-06 12:09:20 +01:00
parent f2bb4fe35e
commit 2d53f12808
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -93,7 +93,6 @@ The new change in Django 3.2 is that you can configure which field Django automa
```python
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField' # 31-bit
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' # 64-bit
DEFAULT_AUTO_FIELD = 'django.db.models.UUIDField' # 128-bit
```
If you run out of 128-bit primary keys, you're either doing something wrong or crazy (or both).