Commit 9f178118 authored by Dennis Appel's avatar Dennis Appel

Add default category

parent f77f37d7
# Generated by Django 2.1.3 on 2018-12-12 17:59
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('checklist', '0002_auto_20181212_1849'),
]
operations = [
migrations.AlterField(
model_name='checklistentry',
name='checklistCategory',
field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.SET_DEFAULT, to='checklist.CheckListCategory'),
),
]
......@@ -15,7 +15,7 @@ class CheckListEntry(models.Model):
wikiEntry = models.ForeignKey(
'wiki.WikiEntry', on_delete=models.SET_NULL, blank=True, null=True)
checklistCategory = models.ForeignKey(
'checklist.CheckListCategory', on_delete=models.CASCADE)
'checklist.CheckListCategory', on_delete=models.SET_DEFAULT, default=1)
checkListEntryTitle = models.CharField(max_length=200)
checkListEntrySeverity = models.CharField(max_length=10)
checkListEntryDescription = models.TextField()
......
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