NDOJ/judge/migrations/0111_contest_decimal_points.py

33 lines
949 B
Python
Raw Permalink Normal View History

# Generated by Django 2.2.12 on 2020-10-26 19:51
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
2022-05-14 17:57:27 +00:00
("judge", "0110_notification_author"),
]
operations = [
migrations.AddField(
2022-05-14 17:57:27 +00:00
model_name="contest",
name="points_precision",
field=models.IntegerField(
default=2,
help_text="Number of digits to round points to.",
validators=[
django.core.validators.MinValueValidator(0),
django.core.validators.MaxValueValidator(10),
],
verbose_name="precision points",
),
),
migrations.AlterField(
2022-05-14 17:57:27 +00:00
model_name="contestparticipation",
name="score",
field=models.FloatField(db_index=True, default=0, verbose_name="score"),
),
]