Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

models/contest: clarify rate_all behaviour #2347

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions judge/migrations/0148_clarify_rate_all_desc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('judge', '0147_judge_add_tiers'),
]

operations = [
migrations.AlterField(
model_name='contest',
name='rate_all',
field=models.BooleanField(default=False, help_text='Rate users even if they make no submissions.', verbose_name='rate all'),
),
]
4 changes: 3 additions & 1 deletion judge/models/contest.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ class Contest(models.Model):
rating_ceiling = models.IntegerField(verbose_name=_('rating ceiling'),
help_text=_('Do not rate users who have a higher rating.'),
null=True, blank=True)
rate_all = models.BooleanField(verbose_name=_('rate all'), help_text=_('Rate all users who joined.'), default=False)
rate_all = models.BooleanField(verbose_name=_('rate all'),
help_text=_('Rate users even if they make no submissions.'),
default=False)
rate_exclude = models.ManyToManyField(Profile, verbose_name=_('exclude from ratings'), blank=True,
related_name='rate_exclude+')
is_private = models.BooleanField(verbose_name=_('private to specific users'), default=False)
Expand Down