Files @ b4a2b9c613c1
Branch filter:

Location: website/conservancy/assignment/migrations/0004_auto_20230127_0602.py

Bradley M. Kuhn
Calculate hours when only one day is left.

This {% widthratio %} trick is something I found online that didn't
require a django-math module to work, but I would have rather written
something that:

(b) Could have a different message when there is only one hour
left: “less than one hour left” (i.e., tested if hours == 1)

(c) Will say “hour” instead of “hours” when there is exactly 1 hour
left.
# Generated by Django 1.11.29 on 2023-01-27 06:02

from django.db import migrations, models

from ..models import validate_mutiple_urls


class Migration(migrations.Migration):

    dependencies = [
        ('assignment', '0003_auto_20211206_2249'),
    ]

    operations = [
        migrations.AlterField(
            model_name='assignment',
            name='all_emails',
            field=models.TextField(verbose_name='All email addresses or other unique user identities, such as nicknames or handles, used by you to contribute to the above (i.e. in the commit logs)'),
        ),
        migrations.AlterField(
            model_name='assignment',
            name='attestation_of_copyright',
            field=models.BooleanField(verbose_name='By checking the box below, I am confirming that I agree to be bound by the terms of the Copyright Assignment Agreement above.'),
        ),
        migrations.AlterField(
            model_name='assignment',
            name='repositories',
            field=models.TextField(help_text='List of URLs, one per line', validators=[validate_mutiple_urls], verbose_name='Code repositories containing contributions of yours whose copyright you are assigning'),
        ),
    ]