Rename 'visible' => 'discoverable'

more clear that it's just the 'front door' we're talking about
This commit is contained in:
Klaas van Schelven
2024-06-17 11:08:02 +02:00
parent 1171309b4e
commit 0e199633b9
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ class Migration(migrations.Migration):
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('name', models.CharField(max_length=255, unique=True)),
('slug', models.SlugField()),
('visibility', models.IntegerField(choices=[(1, 'Joinable'), (10, 'Visible'), (99, 'Hidden')], default=10)),
('visibility', models.IntegerField(choices=[(1, 'Joinable'), (10, 'Discoverable'), (99, 'Hidden')], default=10)),
],
),
migrations.CreateModel(

View File

@@ -13,7 +13,7 @@ class TeamRole(models.IntegerChoices):
class TeamVisibility(models.IntegerChoices):
# PUBLIC = 0 # anyone can see the team and its members not sure if I want this or always want to require click-in
JOINABLE = 1 # anyone can join
VISIBLE = 10 # the team is visible, you can request to join(?), but this needs to be approved
DISCOVERABLE = 10 # the team is visible, you can request to join(?), but this needs to be approved
HIDDEN = 99 # the team is not visible to non-members; you need to be invited