13 lines
461 B
Python
13 lines
461 B
Python
|
from django.db import models
|
||
|
from django.contrib.auth import get_user_model
|
||
|
|
||
|
class Profile(models.Model):
|
||
|
'''
|
||
|
Model for additional user data, so we don't have to touch the actual auth model for that
|
||
|
'''
|
||
|
user = models.OneToOneField(get_user_model(), on_delete=models.PROTECT, primary_key=True)
|
||
|
first_name = models.CharField(max_length=128)
|
||
|
last_name = models.CharField(max_length=128)
|
||
|
display_name = models.CharField(max_length=128)
|
||
|
|