fix: Make ItemIssues nullable to prevent default value error
This commit is contained in:
parent
48393c8f3c
commit
ef2d7c2340
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user