Commit 68ddb115 authored by David Haynes's avatar David Haynes
Browse files

username is a onetoonefield

- not done, only so I can get back to master to fix spacing :/
parent 6d1f7a45
......@@ -59,10 +59,10 @@ class RegisteredUser(models.Model):
that that user is registered.
"""
username = models.CharField(
blank=False,
max_length=30,
primary_key=True
username = models.OneToOneField(
User,
on_delete=models.CASCADE,
primary_key=True,
)
full_name = models.CharField(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment