mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-05 11:28:11 +08:00
restructured app and added task signing
This commit is contained in:
+3
-2
@@ -1,13 +1,14 @@
|
||||
from django.db import models
|
||||
import socket
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from picklefield import PickledObjectField
|
||||
|
||||
|
||||
class Task(models.Model):
|
||||
name = models.CharField(max_length=100)
|
||||
func = models.CharField(max_length=256)
|
||||
task = models.TextField(null=True)
|
||||
result = models.TextField(null=True)
|
||||
task = PickledObjectField()
|
||||
result = PickledObjectField()
|
||||
started = models.DateTimeField()
|
||||
stopped = models.DateTimeField()
|
||||
success = models.BooleanField(default=True)
|
||||
|
||||
Reference in New Issue
Block a user