Commit d3c8d3fe authored by Dennis Appel's avatar Dennis Appel

Fix wrong foreign key in model

parent 430fc0f3
# Generated by Django 2.1.3 on 2018-12-17 18:04
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wiki', '0001_initial'),
('checklist', '0007_checklistcategory_checklistcategory'),
]
operations = [
migrations.RemoveField(
model_name='checklistcategory',
name='checklistCategory',
),
migrations.AddField(
model_name='checklistcategory',
name='wikiEntry',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='wiki.WikiEntry'),
),
]
......@@ -2,8 +2,8 @@ from django.db import models
class CheckListCategory(models.Model):
checklistCategory = models.ForeignKey(
'checklist.CheckListCategory', on_delete=models.SET_DEFAULT, default=1)
wikiEntry = models.ForeignKey(
'wiki.WikiEntry', on_delete=models.SET_NULL, blank=True, null=True)
categoryTitle = models.CharField(max_length=100)
def getEntries(self):
......
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