Commit f595786b authored by Matheus Miranda's avatar Matheus Miranda
Browse files

Update model for ScheduledTask

parent 555f4d58
# Generated by Django 2.2.24 on 2021-12-07 11:48
# Generated by Django 2.2.24 on 2021-12-07 12:11
from django.db import migrations, models
......@@ -15,7 +15,7 @@ class Migration(migrations.Migration):
name='ScheduledTask',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('task_id', models.IntegerField()),
('task_hash', models.CharField(blank=True, max_length=255, verbose_name='Name')),
('release_date', models.DateTimeField(blank=True, default=None, null=True, verbose_name='Date')),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
......
......@@ -13,9 +13,13 @@ class ScheduledTask(models.Model):
verbose_name = _('ScheduledTask')
verbose_name_plural = _('ScheduledTasks')
task_id = models.IntegerField()
task_hash = models.CharField(
_('Name'),
max_length=255,
blank=True,
)
notes = GenericRelation(Lesson, Unit,)
related_obj = GenericRelation(Lesson, Unit,)
release_date = models.DateTimeField(
_('Date'),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment