fix
This commit is contained in:
18
problem/migrations/0017_alter_problem_last_update_time.py
Normal file
18
problem/migrations/0017_alter_problem_last_update_time.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.0.6 on 2025-05-09 00:20
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('problem', '0016_alter_problem_last_update_time'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='problem',
|
||||
name='last_update_time',
|
||||
field=models.DateTimeField(auto_now=True, null=True),
|
||||
),
|
||||
]
|
||||
@@ -60,7 +60,7 @@ class Problem(models.Model):
|
||||
template = JSONField()
|
||||
create_time = models.DateTimeField(auto_now_add=True)
|
||||
# we can not use auto_now here
|
||||
last_update_time = models.DateTimeField(auto_now=True)
|
||||
last_update_time = models.DateTimeField(auto_now=True, null=True)
|
||||
created_by = models.ForeignKey(User, on_delete=models.CASCADE)
|
||||
# ms
|
||||
time_limit = models.IntegerField()
|
||||
|
||||
Reference in New Issue
Block a user