0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 18:07:17 +01:00
This commit is contained in:
Alexander Spicer 2024-11-19 22:54:21 -08:00
parent 03c95e4ca8
commit c2a135f6cf
2 changed files with 5 additions and 5 deletions

View File

@ -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),
),
]

View File

@ -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