task.py 315 B

1234567891011
  1. # -*- coding: utf-8 -*-
  2. from __future__ import unicode_literals
  3. from django.db import models
  4. from core.models.base import Base
  5. from core.models.request import Request
  6. '''
  7. '''
  8. class Task(Base):
  9. last_execution = models.DateTimeField()
  10. request = models.ForeignKey(Request, on_delete=models.CASCADE, null=True)