mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-01 14:28:11 +08:00
28 lines
900 B
Python
28 lines
900 B
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import models, migrations
|
|
import picklefield.fields
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Task',
|
|
fields=[
|
|
('id', models.AutoField(verbose_name='ID', auto_created=True, serialize=False, primary_key=True)),
|
|
('name', models.CharField(max_length=100)),
|
|
('func', models.CharField(max_length=256)),
|
|
('task', picklefield.fields.PickledObjectField(editable=False)),
|
|
('result', picklefield.fields.PickledObjectField(editable=False)),
|
|
('started', models.DateTimeField()),
|
|
('stopped', models.DateTimeField()),
|
|
('success', models.BooleanField(default=True)),
|
|
],
|
|
),
|
|
]
|