Skip to content

Commit

Permalink
Create empty field first
Browse files Browse the repository at this point in the history
  • Loading branch information
triklozoid committed Nov 4, 2024
1 parent c2d8cc1 commit df44225
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions label_studio/tasks/migrations/0051_tasklock_created_at.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.2.16 on 2024-10-30 17:56
# Generated by Django 4.2.16 on 2024-11-04 10:37

from django.db import migrations, models

Expand All @@ -13,6 +13,6 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='tasklock',
name='created_at',
field=models.DateTimeField(auto_now_add=True, help_text='Creation time', null=True, verbose_name='created at'),
field=models.DateTimeField(blank=True, default=None, help_text='Creation time', null=True, verbose_name='created_at'),
),
]
7 changes: 6 additions & 1 deletion label_studio/tasks/migrations/0052_auto_20241030_1757.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Generated by Django 4.2.16 on 2024-10-30 17:57

from django.db import migrations
from django.db import migrations, models
from django.db import connection
from django.conf import settings

Expand Down Expand Up @@ -53,6 +53,11 @@ class Migration(migrations.Migration):
]

operations = [
migrations.AlterField(
model_name='tasklock',
name='created_at',
field=models.DateTimeField(auto_now_add=True, help_text='Creation time', null=True, verbose_name='created at'),
),
migrations.RunPython(forwards, backwards),
]

0 comments on commit df44225

Please sign in to comment.