Commit 3e52db09 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

blank

parent f1fe12ad
# Generated by Django 3.2.7 on 2021-09-16 14:49
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('toto', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='toto',
name='autototo',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='toto.toto'),
),
]
......@@ -3,4 +3,4 @@ from django.db import models
class Toto(models.Model):
number = models.PositiveSmallIntegerField()
autototo = models.ForeignKey('self', on_delete=models.CASCADE)
autototo = models.ForeignKey('self', on_delete=models.CASCADE, blank=True, null=True)
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