8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-27 23:22:25 +00:00
re2o/footprint/migrations/0001_initial.py

30 lines
1.2 KiB
Python
Raw Permalink Normal View History

# Generated by Django 2.2.18 on 2022-01-09 17:33
2021-12-23 21:49:08 +00:00
import django.core.validators
from django.db import migrations, models
import re2o.mixins
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='FootprintOption',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('monthly_infra_emissions', models.DecimalField(blank=True, decimal_places=2, default=None, max_digits=10, null=True, validators=[django.core.validators.MinValueValidator(0)], verbose_name='Estimated monthly infrastructure emissions (in kgCO₂e/month)')),
2021-12-23 21:49:08 +00:00
('data_usage_script_path', models.CharField(default='footprint/scripts/default_data_usage_estimator.py', max_length=4096, verbose_name='User monthly data usage estimation script')),
('data_usage_script_timeout', models.DecimalField(decimal_places=2, default=10, max_digits=4, verbose_name='Estimation script timeout (in seconds)')),
],
options={
'verbose_name': 'Footprint preferences',
},
bases=(re2o.mixins.AclMixin, models.Model),
),
]