Skip to content
Permalink
Browse files
Make algorithm field nullable
  • Loading branch information
Nasser Kaze committed Aug 20, 2021
1 parent 1c3c8f4 commit 5fb933953251eaae52e732233da74b7b5d5169dd
Showing 2 changed files with 20 additions and 1 deletion.
@@ -0,0 +1,19 @@
# Generated by Django 3.2.1 on 2021-08-20 04:32

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

dependencies = [
('api', '0001_initial'),
]

operations = [
migrations.AlterField(
model_name='predictionrequest',
name='algorithm',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='api.algorithm'),
),
]
@@ -91,7 +91,7 @@ class PredictionRequest(models.Model):
notes = models.TextField(blank=True, null=True)
algorithm: Algorithm = models.ForeignKey(Algorithm,
on_delete=models.DO_NOTHING,
blank=True)
blank=True, null=True)
created_at: date = models.DateTimeField(auto_now_add=True, blank=True)
created_by = models.CharField(max_length=128)

0 comments on commit 5fb9339

Please sign in to comment.