2015-02-12 03:38:52 +08:00
|
|
|
import uuid
|
|
|
|
|
|
|
|
from django.contrib.auth.models import AbstractUser
|
|
|
|
from django.db import models
|
|
|
|
|
2016-02-05 00:47:51 +08:00
|
|
|
from .custom_user import RemoveGroupsAndPermissions
|
|
|
|
|
2015-02-12 03:38:52 +08:00
|
|
|
with RemoveGroupsAndPermissions():
|
2022-02-04 03:24:19 +08:00
|
|
|
|
2015-02-12 03:38:52 +08:00
|
|
|
class UUIDUser(AbstractUser):
|
|
|
|
"""A user with a UUID as primary key"""
|
2022-02-04 03:24:19 +08:00
|
|
|
|
2015-02-12 03:38:52 +08:00
|
|
|
id = models.UUIDField(default=uuid.uuid4, primary_key=True)
|