gva/gnuviechadmin/taskresults/migrations/0001_initial.py
Jan Dittberner 4af1a39ca4 Upgrade to Django 3.2
- update dependencies
- fix deprecation warnings
- fix tests
- skip some tests that need more work
- reformat changed code with isort and black
2023-02-18 22:46:48 +01:00

36 lines
1.2 KiB
Python

# -*- coding: utf-8 -*-
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = []
operations = [
migrations.CreateModel(
name="TaskResult",
fields=[
(
"id",
models.AutoField(
verbose_name="ID",
serialize=False,
auto_created=True,
primary_key=True,
),
),
("task_id", models.CharField(max_length=36, verbose_name="Task id")),
(
"task_name",
models.CharField(max_length=64, verbose_name="Task name"),
),
("result", models.TextField(verbose_name="Task result")),
("finished", models.BooleanField(default=False)),
("state", models.CharField(max_length=16, verbose_name="Task state")),
],
options={
"verbose_name": "Task result",
"verbose_name_plural": "Task results",
},
bases=(models.Model,),
),
]