mirror of
https://github.com/bugsink/bugsink.git
synced 2025-12-19 19:49:44 -06:00
Project/team help_text
This commit is contained in:
22
projects/migrations/0009_alter_project_visibility.py
Normal file
22
projects/migrations/0009_alter_project_visibility.py
Normal file
@@ -0,0 +1,22 @@
|
||||
# Generated by Django 4.2.16 on 2024-11-20 13:31
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("projects", "0008_project_next_quota_check"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="project",
|
||||
name="visibility",
|
||||
field=models.IntegerField(
|
||||
choices=[(1, "Joinable"), (10, "Discoverable"), (99, "Team Members")],
|
||||
default=99,
|
||||
help_text="Which users can see this project and its issues?",
|
||||
),
|
||||
),
|
||||
]
|
||||
@@ -59,7 +59,9 @@ class Project(models.Model):
|
||||
alert_on_unmute = models.BooleanField(default=True)
|
||||
|
||||
# visibility
|
||||
visibility = models.IntegerField(choices=ProjectVisibility.choices, default=ProjectVisibility.TEAM_MEMBERS)
|
||||
visibility = models.IntegerField(
|
||||
choices=ProjectVisibility.choices, default=ProjectVisibility.TEAM_MEMBERS,
|
||||
help_text="Which users can see this project and its issues?")
|
||||
|
||||
# ingestion/digestion quota
|
||||
quota_exceeded_until = models.DateTimeField(null=True, blank=True)
|
||||
|
||||
22
teams/migrations/0003_alter_team_visibility.py
Normal file
22
teams/migrations/0003_alter_team_visibility.py
Normal file
@@ -0,0 +1,22 @@
|
||||
# Generated by Django 4.2.16 on 2024-11-20 13:31
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("teams", "0002_initial"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="team",
|
||||
name="visibility",
|
||||
field=models.IntegerField(
|
||||
choices=[(1, "Joinable"), (10, "Discoverable"), (99, "Hidden")],
|
||||
default=10,
|
||||
help_text="Which users can see this team and its issues?",
|
||||
),
|
||||
),
|
||||
]
|
||||
@@ -23,7 +23,9 @@ class Team(models.Model):
|
||||
name = models.CharField(max_length=255, blank=False, null=False, unique=True)
|
||||
slug = models.SlugField(max_length=50, blank=False, null=False)
|
||||
|
||||
visibility = models.IntegerField(choices=TeamVisibility.choices, default=TeamVisibility.DISCOVERABLE)
|
||||
visibility = models.IntegerField(
|
||||
choices=TeamVisibility.choices, default=TeamVisibility.DISCOVERABLE,
|
||||
help_text="Which users can see this team and its issues?")
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
Reference in New Issue
Block a user