I keep on getting an Integrity Error (FOREIGN KEY constrain failed) after registration.

```
from django.db import models
from .user import User
from django.core.validators import RegexValidator
from django.db.models.signals import post_save
from django.dispatch import receiver

class Student(models.Model):
    user = models.OneToOneField(User, on_delete=models.CASCADE, primary_key=True)
    avatar = models.ImageField(upload_to='media/pictures/', blank=True)
    regex = RegexValidator(r'^\d{2}/\d{4}',
                           message='Required. 7 characters or fewer. This value must contain only numeric and slash.')
    matric_no = models.CharField(validators=[regex], blank=False, max_length=7, unique=True)
    phone_regex = RegexValidator(regex=r'^\+?1?\d{9,15}$',
                                 message="Phone number must be entered in the format: '+999999999'. Up to 15 digits allowed.")
    phone_number = models.CharField(validators=[phone_regex], max_length=17, blank=True)  # validators should be a list
    address = models.CharField(max_length=150, blank=True)
    birth_date = models.DateField(null=True, blank=True)

    GENDER_CHOICES = (
            ('M', 'Male'),
            ('F', 'Female'),
        )
    gender = models.CharField(max_length=1, choices=GENDER_CHOICES, null=False, default='M',)

```

forms.py

```
class StudentProfileForm(forms.ModelForm):
    avatar = forms.ImageField()

    class Meta:
        model = Student
        fields = ('avatar', 'phone_number', 'address', 'gender', 'matric_no')

```

views.py

```
class StudentRegistrationView(CreateView):
    model = Student
    form_class = StudentProfileForm
    template_name = 'registration.html'

    def student_registration(request):
        if request.method == "POST":
            form = StudentProfileForm(request.POST, request.FILES)
            if form.is_valid():
                register = form.save(False)
                register.save()
                return redirect('home')

        else:
            form = StudentProfileForm()
        return render(request, 'accounts/registration.html', {'form': form})

```

What I think the problem might probably be is matric\_no field, or what did you think?