Skip to content

Commit

Permalink
fix(admin): reverts "Allow empty DashboardTile.text or .insight" (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarticus authored Jul 19, 2024
1 parent fae47fc commit dc98c53
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions posthog/models/dashboard_tile.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,16 @@ class DashboardTile(models.Model):
# Relations
dashboard = models.ForeignKey("posthog.Dashboard", on_delete=models.CASCADE, related_name="tiles")
insight = models.ForeignKey(
"posthog.Insight", on_delete=models.CASCADE, related_name="dashboard_tiles", null=True, blank=True
"posthog.Insight",
on_delete=models.CASCADE,
related_name="dashboard_tiles",
null=True,
)
text = models.ForeignKey(
"posthog.Text", on_delete=models.CASCADE, related_name="dashboard_tiles", null=True, blank=True
"posthog.Text",
on_delete=models.CASCADE,
related_name="dashboard_tiles",
null=True,
)

# Tile layout and style
Expand Down

0 comments on commit dc98c53

Please sign in to comment.