-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model 'Academic Experience' required #5
Comments
@amikable-tech this prompt is raised because there is a database with data and migrations in the project. Like the message stats:
There are mulitple ways of dealing with this: Setting the null keyword argument for the user field to True or default=None. But these are both just hotfixes. Since we have the class PersonalInformation(models.Model):
name = models.CharField(max_length=25, blank=False)
user = models.ForeignKey(User, on_delete=models.CASCADE, null=True)
... class PersonalInformation(models.Model):
name = models.CharField(max_length=25, blank=False)
user = models.ForeignKey(User, on_delete=models.CASCADE, default=None)
... Then it should work well 😃. You should copy your changes and then pull the latest version. |
Now there is no |
Requirements
The text was updated successfully, but these errors were encountered: