2014-12-29 15:55:57 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
2023-02-18 22:46:48 +01:00
|
|
|
from django.db import migrations, models
|
2014-12-29 15:55:57 +01:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
2023-02-18 22:46:48 +01:00
|
|
|
dependencies = []
|
2014-12-29 15:55:57 +01:00
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2023-02-18 22:46:48 +01:00
|
|
|
name="TaskResult",
|
2014-12-29 15:55:57 +01:00
|
|
|
fields=[
|
2023-02-18 22:46:48 +01:00
|
|
|
(
|
|
|
|
"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")),
|
2014-12-29 15:55:57 +01:00
|
|
|
],
|
|
|
|
options={
|
2023-02-18 22:46:48 +01:00
|
|
|
"verbose_name": "Task result",
|
|
|
|
"verbose_name_plural": "Task results",
|
2014-12-29 15:55:57 +01:00
|
|
|
},
|
|
|
|
bases=(models.Model,),
|
|
|
|
),
|
|
|
|
]
|