Skip to content

Commit

Permalink
Update user model to have a UUID
Browse files Browse the repository at this point in the history
  • Loading branch information
David Davis authored and daviddavis committed Dec 15, 2017
1 parent 95cacde commit 163054b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pulpcore/pulpcore/app/models/auth.py
Expand Up @@ -7,6 +7,7 @@
"""
import random
from gettext import gettext as _
import uuid

from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, PermissionsMixin
from django.db import models
Expand Down Expand Up @@ -51,6 +52,8 @@ class User(AbstractBaseUser, PermissionsMixin):
"""
A custom Django User class for Pulp.
"""
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)

username = models.CharField(
verbose_name=_('username'),
max_length=150,
Expand Down

0 comments on commit 163054b

Please sign in to comment.