Files @ b4a2b9c613c1
Branch filter:

Location: website/conservancy/assignment/migrations/0001_initial.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.10.7 on 2021-11-30 00:24

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Assignment',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('full_name', models.CharField(max_length=255)),
                ('email', models.EmailField(max_length=254)),
                ('place_of_residence', models.TextField(blank=True, verbose_name='Country of citizenship or residential address')),
                ('repository', models.URLField(blank=True, verbose_name='Code repository')),
                ('coverage', models.CharField(choices=[('up to this year', 'One-off up to and including this year'), ('ongoing', 'All existing and new contributions')], default='up to this year', max_length=50, verbose_name='Time period to assign')),
                ('attestation_of_copyright', models.BooleanField(verbose_name='I attest that I own the copyright on these works')),
            ],
        ),
    ]