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():
|
|
|
|
class UUIDUser(AbstractUser):
|
|
|
|
"""A user with a UUID as primary key"""
|
|
|
|
id = models.UUIDField(default=uuid.uuid4, primary_key=True)
|