a user with a uuid as primary key id models uuidfielddefaultuuid uuid4 primarykeytrue a user with a uuid as primary key
import uuid

from django.contrib.auth.models import AbstractUser
from django.db import models

from .custom_user import RemoveGroupsAndPermissions

with RemoveGroupsAndPermissions():

    class UUIDUser(AbstractUser):
        

        id = models.UUIDField(default=uuid.uuid4, primary_key=True)