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