Restoroo/core/models/profiles.py

13 lines
461 B
Python
Raw Normal View History

2022-08-04 15:58:57 +00:00
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)