mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 18:07:17 +01:00
hm
This commit is contained in:
parent
03c95e4ca8
commit
c2a135f6cf
@ -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),
|
||||
),
|
||||
]
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user