diff --git a/market/models.py b/market/models.py index a3fd084..3e88c67 100644 --- a/market/models.py +++ b/market/models.py @@ -48,7 +48,7 @@ class Post(models.Model): User, on_delete=models.SET_NULL, null=True, related_name="posts" ) 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) written_at = models.DateTimeField(auto_now_add=True)