Files @ b4a2b9c613c1
Branch filter:

Location: website/conservancy/assignment/migrations/0003_auto_20211206_2249.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 2021-12-06 22:49

import uuid

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('assignment', '0002_auto_20211206_2237'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='assignment',
            name='id',
        ),
        migrations.AddField(
            model_name='assignment',
            name='uuid',
            field=models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False),
        ),
    ]