From dc98c53eb3a0179bf7df0085bf57abc3d7626b3e Mon Sep 17 00:00:00 2001 From: Dylan Martin Date: Fri, 19 Jul 2024 18:21:43 -0400 Subject: [PATCH] fix(admin): reverts "Allow empty `DashboardTile.text` or `.insight`" (#23869) --- posthog/models/dashboard_tile.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/posthog/models/dashboard_tile.py b/posthog/models/dashboard_tile.py index ce755bfddd046..b24fdf1989bb6 100644 --- a/posthog/models/dashboard_tile.py +++ b/posthog/models/dashboard_tile.py @@ -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