From 0e199633b99ea05beede9e3c661feef3c77648f7 Mon Sep 17 00:00:00 2001 From: Klaas van Schelven Date: Mon, 17 Jun 2024 11:08:02 +0200 Subject: [PATCH] Rename 'visible' => 'discoverable' more clear that it's just the 'front door' we're talking about --- teams/migrations/0001_initial.py | 2 +- teams/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/teams/migrations/0001_initial.py b/teams/migrations/0001_initial.py index 7d4ad57..f62a65e 100644 --- a/teams/migrations/0001_initial.py +++ b/teams/migrations/0001_initial.py @@ -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( diff --git a/teams/models.py b/teams/models.py index 8d04393..3a154c9 100644 --- a/teams/models.py +++ b/teams/models.py @@ -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