From c2a135f6cf3719c06f897c862d398bb1a04506a6 Mon Sep 17 00:00:00 2001 From: Alexander Spicer Date: Tue, 19 Nov 2024 22:54:21 -0800 Subject: [PATCH] hm --- .../0521_sharingconfiguration_password_and_more.py | 6 +++--- posthog/models/sharing_configuration.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/posthog/migrations/0521_sharingconfiguration_password_and_more.py b/posthog/migrations/0521_sharingconfiguration_password_and_more.py index 5210a61b1a9..6f5ae64bb0c 100644 --- a/posthog/migrations/0521_sharingconfiguration_password_and_more.py +++ b/posthog/migrations/0521_sharingconfiguration_password_and_more.py @@ -1,4 +1,4 @@ -# Generated by Django 4.2.15 on 2024-11-20 06:28 +# Generated by Django 4.2.15 on 2024-11-20 06:46 from django.db import migrations, models @@ -12,11 +12,11 @@ class Migration(migrations.Migration): migrations.AddField( model_name="sharingconfiguration", name="password", - field=models.CharField(blank=True, default="", max_length=256), + field=models.CharField(blank=True, max_length=256, null=True), ), migrations.AddField( model_name="sharingconfiguration", name="password_required", - field=models.BooleanField(default=False), + field=models.BooleanField(blank=True, default=False, null=True), ), ] diff --git a/posthog/models/sharing_configuration.py b/posthog/models/sharing_configuration.py index a68d0d64677..9a59c37d2d5 100644 --- a/posthog/models/sharing_configuration.py +++ b/posthog/models/sharing_configuration.py @@ -35,8 +35,8 @@ class SharingConfiguration(models.Model): unique=True, ) - password_required = models.BooleanField(default=False) - password = models.CharField(max_length=256, null=False, blank=True, default="", unique=False) + password_required = models.BooleanField(default=False, null=True, blank=True) + password = models.CharField(max_length=256, null=True, blank=True, unique=False) def can_access_object(self, obj: models.Model): if obj.team_id != self.team_id: # type: ignore