2020-01-21 06:35:58 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Generated by Django 1.11.20 on 2019-09-02 15:58
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
2022-05-14 17:57:27 +00:00
|
|
|
("judge", "0087_problem_resource_limits"),
|
2020-01-21 06:35:58 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.AlterModelOptions(
|
2022-05-14 17:57:27 +00:00
|
|
|
name="contest",
|
|
|
|
options={
|
|
|
|
"permissions": (
|
|
|
|
("see_private_contest", "See private contests"),
|
|
|
|
("edit_own_contest", "Edit own contests"),
|
|
|
|
("edit_all_contest", "Edit all contests"),
|
|
|
|
("contest_rating", "Rate contests"),
|
|
|
|
("contest_access_code", "Contest access codes"),
|
|
|
|
("create_private_contest", "Create private contests"),
|
|
|
|
),
|
|
|
|
"verbose_name": "contest",
|
|
|
|
"verbose_name_plural": "contests",
|
|
|
|
},
|
2020-01-21 06:35:58 +00:00
|
|
|
),
|
|
|
|
migrations.RenameField(
|
2022-05-14 17:57:27 +00:00
|
|
|
model_name="contest",
|
|
|
|
old_name="is_public",
|
|
|
|
new_name="is_visible",
|
2020-01-21 06:35:58 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
2022-05-14 17:57:27 +00:00
|
|
|
model_name="contest",
|
|
|
|
name="is_organization_private",
|
|
|
|
field=models.BooleanField(
|
|
|
|
default=False, verbose_name="private to organizations"
|
|
|
|
),
|
2020-01-21 06:35:58 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
2022-05-14 17:57:27 +00:00
|
|
|
model_name="contest",
|
|
|
|
name="private_contestants",
|
|
|
|
field=models.ManyToManyField(
|
|
|
|
blank=True,
|
|
|
|
help_text="If private, only these users may see the contest",
|
|
|
|
related_name="_contest_private_contestants_+",
|
|
|
|
to="judge.Profile",
|
|
|
|
verbose_name="private contestants",
|
|
|
|
),
|
2020-01-21 06:35:58 +00:00
|
|
|
),
|
|
|
|
migrations.AlterField(
|
2022-05-14 17:57:27 +00:00
|
|
|
model_name="contest",
|
|
|
|
name="is_private",
|
|
|
|
field=models.BooleanField(
|
|
|
|
default=False, verbose_name="private to specific users"
|
|
|
|
),
|
2020-01-21 06:35:58 +00:00
|
|
|
),
|
|
|
|
]
|