Commit f782aa56 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

OneToOne also require on_delete's

parent 5abf58ff
......@@ -10,7 +10,8 @@ from model_utils.models import TimeStampedModel
class Student(TimeStampedModel):
# django user includes username, password, first name, and last name
user = models.OneToOneField(User)
user = models.OneToOneField(User,
pf_first_name = models.CharField(max_length=255, blank=True)
pf_last_name = models.CharField(max_length=255, blank=True)
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