fix: Make ItemIssues nullable to prevent default value error

This commit is contained in:
jhynsoo 2023-11-14 00:44:26 +09:00
parent 48393c8f3c
commit ef2d7c2340

View File

@ -48,7 +48,7 @@ class Post(models.Model):
User, on_delete=models.SET_NULL, null=True, related_name="posts" User, on_delete=models.SET_NULL, null=True, related_name="posts"
) )
item_issues = models.OneToOneField( item_issues = models.OneToOneField(
ItemIssues, on_delete=models.CASCADE, related_name="post" ItemIssues, on_delete=models.CASCADE, null=True, related_name="post"
) )
done = models.BooleanField(default=False) done = models.BooleanField(default=False)
written_at = models.DateTimeField(auto_now_add=True) written_at = models.DateTimeField(auto_now_add=True)